I have a numeric text box that I set a minimum value of 1 and a maximum value of 99. If I type 0 into the field the validation fires but it does not clear that 0 out of the text area. On the OnError event I am trying to clear the value of the textbox but the 0 is still there.
Is there something that I am missing? Does the OnError event prevent updates to that object?
<
telerik:RadNumericTextBox
Save
=
"Text"
ID
=
"txtFileFormat"
runat
=
"server"
MaxValue
=
"99"
MinValue
=
"1"
Width
=
"25px"
TabIndex
=
"1"
AllowOutOfRangeAutoCorrect
=
"False"
AutoCompleteType
=
"Disabled"
ClientEvents-OnError
=
"FileError"
>
<
NumberFormat
AllowRounding
=
"False"
DecimalDigits
=
"0"
/>
function FileError(sender, args) {
sender.set_textBoxValue(null);
}
Is there something that I am missing? Does the OnError event prevent updates to that object?