Feb 12, 2013, 4:57 PM
[CLOSED] Preventing NumberField from setting values to 0/MinValue/MaxValue
Hi all,
is it possible to prevent values from being automatically set to MinValue/MaxValue when exceeding the range? I'm using the InvalidClass property to set a colored background if the typed value is empty or too high or too low - that's working perfectly, but I need to save the values as is, even if they are invalid. The NumberField resets <empty> to 0 and too high/low values to valid max/min numbers; if I save and show them again in the dialog, they are different from what the user input originally was. So, is it possible to use the validation without Ext.net changing the values?
Thank you! Ingo
is it possible to prevent values from being automatically set to MinValue/MaxValue when exceeding the range? I'm using the InvalidClass property to set a colored background if the typed value is empty or too high or too low - that's working perfectly, but I need to save the values as is, even if they are invalid. The NumberField resets <empty> to 0 and too high/low values to valid max/min numbers; if I save and show them again in the dialog, they are different from what the user input originally was. So, is it possible to use the validation without Ext.net changing the values?
Thank you! Ingo
<ext:NumberField runat="server" ID="txtField" IDMode="Static" Width="20" MaxLength="1" AllowBlank="false" MinValue="0" MaxValue="3" AllowNegative="false" InvalidClass="axvFieldIndicator" />
Last edited by Daniil; Feb 13, 2013 at 10:34 AM.
Reason: [CLOSED]