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,
In order to remove the decimal places, I recommend you using the following properties:
Min and Max DecimalPlaces — Allows you to set the minimum and maximum number of decimal places to be displayed when the control loses focus.
By setting both to 0 you would ensure that there would be no decimal places when the control loses focus.
Please let me know if you have any questions.
Regards,Ivan Kitanov
How to remove decimal places?
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>
Regards, Ivan Kitanov