The WebPercentEditor allows the value to go above the MaxValue when using the up arrow key. The old WebPercentEdit control did not allow this. For example, the HTML code below will only allow a max of 99.999 to be typed in by the user but they can use the arrow key to increase the value. Is there a way around this?
<ig:WebPercentEditor ID="wpeRate" runat="server"
Width="50px"
SkinID="Decimal3"
MaxValue="99.999"
MinValue="0"
MaxLength="6"
Nullable="True"
MinDecimalPlaces="3"
Style="z-index: 110; left: 12px; position: absolute; top: 0px">
</ig:WebPercentEditor>
Hello Autumn,
After further testing, our developers informed me that this is not a bug and it's the correct behavior of the WebPercentEditor because of the percentage conversions and calculations that it perform. When you set Max value to 99.999, this means 9999% because the editor converts the number in percent multiplying it to 100. If you have any questions, please let me know.
Regards,
Tsanna
So how do we code it to only allow 99.9999 to be entered by the user whether they are typing it in manually or using the arrow key?