Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
205
WebPercentEditor Min and Max Value
posted

In the latest version of infragistics the webpercenteditor i have assigned max=100, min=0 and maxlength=3. But the control accepts the value greater than the specified range. Please help me to find the solution.

Thanks in advance!!

Parents
  • 1700
    Verified Answer
    Offline posted

    Hello Prakash, 

    The reason why the user can enter a number higher than 100 in the WebPercent editor is because, the editor perceives the numbers entered as percentages, not numbers meaning that the number 100 would be 10000%, in order to limit the WebPercentEditor with maximum value of 100% its max value should be set to 1. The markup should be similar to the one below:

     <ig:WebPercentEditor ID="WebPercentEditor1" MaxValue="1" MinValue="0" MaxLength="3" runat="server">

    </ig:WebPercentEditor>

     

    Please let me know if you have any questions.  

    Regards,
    Ivan Kitanov

Reply Children