I have a rad grid with ADD/Update all working correctly. Above the grid on the I have a select box and date picker that is used in filtering the data that is bound to my grid.
I added a RequiredFieldValidator to two of the column columns.
If I change the select box above the grid and rebind the grid while the user is in "Add" mode, the Validator is triggered and the grid stays in add mode...
Is there a way to force the grid to refresh and not be left in add mode from the validation. If I take out the field validation, then all works as expected.
I added a RequiredFieldValidator to two of the column columns.
If I change the select box above the grid and rebind the grid while the user is in "Add" mode, the Validator is triggered and the grid stays in add mode...
Is there a way to force the grid to refresh and not be left in add mode from the validation. If I take out the field validation, then all works as expected.
<
telerik:GridTemplateColumn
DataField
=
"sFirstName"
FilterControlAltText
=
"Filter sFirstName column"
HeaderText
=
"First Name"
SortExpression
=
"sFirstName"
UniqueName
=
"sFirstName"
>
<
EditItemTemplate
>
<
asp:TextBox
ID
=
"sFirstNameTextBox"
runat
=
"server"
Text='<%# Bind("sFirstName") %>' MaxLength="50"></
asp:TextBox
>
<
asp:RequiredFieldValidator
ID
=
"rfvFirstName"
ControlToValidate
=
"sFirstNameTextBox"
ErrorMessage
=
"*Required"
Display
=
"Static"
runat
=
"server"
ForeColor
=
"Red"
>
</
asp:RequiredFieldValidator
>
</
EditItemTemplate
>
<
ItemTemplate
>
<
asp:Label
ID
=
"sFirstNameLabel"
runat
=
"server"
Text='<%# Eval("sFirstName") %>'></
asp:Label
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>