I have a grid that's using a separate Edit form that has a RadInputManager to validate control values (Note: The RIM and controls are part of a user control that makes up a portion of the edit form). Most of these are standard (ASP) textboxes and the RIM is properly showing the entry cues (i.e. "Please enter text here."). However, when the form is submitted, the RIM validators (?) are not firing to show the missing/incorrect fields and are also not preventing the form from being submitted (form is being posted back with bad data).
On the server side, if I check Page.IsValid, the result is true. Previously, I had a similar issue where the RIM validation was flagging the fields as bad (i.e. showing a red outline in the offending field(s)), but was still submitting the form immediately instead of forcing the user to correct the bad data.
Here's a snippet of the RadInputManager properties that are set:
And here is the markup for the fields themselves:
Has anyone seen this issue before and/or know of a solution?
Thanks,
Jon
On the server side, if I check Page.IsValid, the result is true. Previously, I had a similar issue where the RIM validation was flagging the fields as bad (i.e. showing a red outline in the offending field(s)), but was still submitting the form immediately instead of forcing the user to correct the bad data.
Here's a snippet of the RadInputManager properties that are set:
<
telerik:RadInputManager
id
=
"RadInputManager1"
runat
=
"server"
>
<
telerik:TextBoxSetting
ErrorMessage
=
"Required field."
Validation-IsRequired
=
"True"
EmptyMessage
=
"Please type here."
Validation-ValidateOnEvent
=
"Submit"
>
<
TargetControls
>
<
telerik:TargetInput
ControlID
=
"txtFirstName"
Enabled
=
"true"
/>
<
telerik:TargetInput
ControlID
=
"txtLastName"
Enabled
=
"true"
/>
<
telerik:TargetInput
ControlID
=
"txtEmail"
Enabled
=
"true"
/>
</
TargetControls
>
<
Validation
IsRequired
=
"True"
ValidationGroup
=
"AccountValidationGroup"
>
</
Validation
>
</
telerik:TextBoxSetting
>
<
telerik:RegExpTextBoxSetting
ErrorMessage
=
"Please enter a valid email address."
ValidationExpression
=
"^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$"
Validation-ValidateOnEvent
=
"Submit"
>
<
TargetControls
>
<
telerik:TargetInput
ControlID
=
"txtEmail"
Enabled
=
"true"
/>
</
TargetControls
>
<
Validation
IsRequired
=
"True"
ValidationGroup
=
"AccountValidationGroup"
></
Validation
>
</
telerik:RegExpTextBoxSetting
>
</
telerik:RadInputManager
>
And here is the markup for the fields themselves:
<
div
style
=
"float: left; width: 50%;"
>
<
table
cellspacing
=
"0"
border
=
"0"
summary
=
"Edit Table"
>
<
tr
>
<
td
align
=
"right"
>
<
asp:Label
ID
=
"lblFirstName"
runat
=
"server"
Text
=
"First Name"
/>
</
td
>
<
td
>
<
asp:TextBox
ID
=
"txtFirstName"
runat
=
"server"
AutoCompleteType
=
"FirstName"
TabIndex
=
"3"
/>
</
td
>
</
tr
>
<
tr
>
<
td
align
=
"right"
>
<
asp:Label
ID
=
"lblLastName"
runat
=
"server"
Text
=
"Last Name"
/>
</
td
>
<
td
>
<
asp:TextBox
ID
=
"txtLastName"
runat
=
"server"
AutoCompleteType
=
"LastName"
TabIndex
=
"4"
/>
</
td
>
</
tr
>
<
tr
>
<
td
align
=
"right"
>
<
asp:Label
ID
=
"lblEmail"
runat
=
"server"
Text
=
"Email"
/>
</
td
>
<
td
>
<
telerik:RadTextBox
ID
=
"txtEmail"
runat
=
"server"
AutoCompleteType
=
"None"
TabIndex
=
"9"
></
telerik:RadTextBox
>
</
td
>
</
tr
>
</
table
>
</
div
>
Has anyone seen this issue before and/or know of a solution?
Thanks,
Jon