I have a RadNumericTextBox defined as follows:
When users enter a number that's out of range (e.g., 77777777777777), the text turns red and a yield sign appears in the control when focus is lost. When the user saves the object, the control's value is set to null and therefore, our validation isn't executed on the code-behind.
I checked out the properties of the control and see there's an .Invalid property, but when I check it's state in the code, it's set to false.
How can I check to see that the control is in an invalid state programmatically?
<
telerik:RadNumericTextBox
ID
=
"txtMaxCost"
Runat
=
"server"
MaxLength
=
"14"
Width
=
"250px"
Type
=
"Currency"
SkinID
=
"OverrideRadDefaultSkinWithNonExistantSkin"
AutoPostBack
=
"true"
Enabled
=
"true"
AllowOutOfRangeAutoCorrect
=
"false"
>
<
NumberFormat
DecimalDigits
=
"2"
KeepNotRoundedValue
=
"False"
/>
</
telerik:RadNumericTextBox
>
When users enter a number that's out of range (e.g., 77777777777777), the text turns red and a yield sign appears in the control when focus is lost. When the user saves the object, the control's value is set to null and therefore, our validation isn't executed on the code-behind.
I checked out the properties of the control and see there's an .Invalid property, but when I check it's state in the code, it's set to false.
How can I check to see that the control is in an invalid state programmatically?