HI,
I have keybordnavigation enabled on a RadGrid with a FormTemplate for edition and inserting. I have several radtextbox with requiredfieldvalidators like :
If I click my save button inside the template, the update command is not fired if edDescription is emptym but if I press ENTER key, the server event is fired. My save button looks like :
Is there something to perform validation on Enter key press?
Tom
Update : ok I achived make the validators to work by putting KeyboardNavigationSettings.ValidationGroup = "freqValid", but this only work in update mode, not in insert mode !?!?!
I have keybordnavigation enabled on a RadGrid with a FormTemplate for edition and inserting. I have several radtextbox with requiredfieldvalidators like :
<
telerik:RadTextBox
ID
=
"edDescription"
runat
=
"server"
Text='<%# Bind("PPSO_DESCRIPTION") %>'
DataType="System.String" Width="277" MaxLength="50" SelectionOnFocus="SelectAll"> </
telerik:RadTextBox
>
<
asp:RequiredFieldValidator
ID
=
"RequiredFieldValidator1"
ControlToValidate
=
"edDescription"
ErrorMessage='<%# GetMessageEx(1744).Texte%>' runat="server" Display="Dynamic" ValidationGroup="freqValid" />
If I click my save button inside the template, the update command is not fired if edDescription is emptym but if I press ENTER key, the server event is fired. My save button looks like :
<
asp:Button
ID
=
"btnUpdate"
Text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Add", "Save") %>' CausesValidation="true" ="server"
CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update") %>' ValidationGroup="freqValid">
Is there something to perform validation on Enter key press?
Tom
Update : ok I achived make the validators to work by putting KeyboardNavigationSettings.ValidationGroup = "freqValid", but this only work in update mode, not in insert mode !?!?!