I have a grid , have one GridTemplateColumn has a text box
I need to allow user to tab out to the next row of the text box and set focus to the next row text box.
on Itemdatabound, I used
It will allow me to tab out to the next row text box fine if I don't do any edit, as long as I change the text in the text box, which fires
Is there anyway I can make the focus to the next row of text box in the grid after OnTextChanged triggered?
How can I find thegrid next row clientID on OnTextChanged??
Thanks!
<
telerik:GridTemplateColumn
UniqueName
=
"ForeignTranslation"
AllowFiltering
=
"true"
FilterControlWidth
=
"70px"
HeaderText
=
"dd"
>
<
ItemTemplate
>
<
asp:TextBox
ID
=
"txtTranslationText"
AutoPostBack
=
"true"
runat
=
"server"
Height
=
"44px"
OnTextChanged
=
"txtTranslationText_TextChanged"
TextMode
=
"MultiLine"
></
asp:TextBox
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
OnTextChanged
will save the data to DBI need to allow user to tab out to the next row of the text box and set focus to the next row text box.
on Itemdatabound, I used
TextBox tb = (TextBox)dataItem["ForeignTranslation"].FindControl("txtTranslationText");
tb.TabIndex = 1;
OnTextChanged
, then, the form did post back and the focus lost.Is there anyway I can make the focus to the next row of text box in the grid after OnTextChanged triggered?
How can I find thegrid next row clientID on OnTextChanged??
Thanks!