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!!
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
How to remove decimal places?