Hi Robert,
One Suggestion is that you can programmatically find a range for RadNumericTextBox and assign those values in HiddenField, then compare those values with the RadNumericTextBox value in
OnValueChanged event. Please have a look into the sample code snippet which works fine at my end.
ASPX:
<
telerik:RadNumericTextBox
ID
=
"RadNumericTextBox1"
runat
=
"server"
ClientEvents- OnValueChanged
=
"OnValueChanged"
>
</
telerik:RadNumericTextBox
>
<
asp:HiddenField
ID
=
"MinValue"
runat
=
"server"
/>
<
asp:HiddenField
ID
=
"MaxValue"
runat
=
"server"
/>
JavaScript:
<script type=
"text/javascript"
>
function
OnValueChanged(sender, args) {
//programatically set a maximum value and minimum value to the hidden fields
var
max = document.getElementById(
"MaxValue"
).value;
var
min = document.getElementById(
"MinValue"
).value;
if
(args.get_newValue() < min && args.get_newValue() > max)
sender.set_value(
""
);
}
</script>
Let me know if you have any concern.
Thanks,
Princy.