This is a migrated thread and some comments may be shown as answers.

set focus to an individual cell in radgrid

3 Answers 423 Views
Grid
This is a migrated thread and some comments may be shown as answers.
EJ
Top achievements
Rank 1
EJ asked on 03 Jun 2010, 11:24 PM
i read somewhere about a currentrow and currentcolumn but I think i was reading about the winform controls - how do you do this on the webform asp.net controls? I want to set the focus to the first row second column cell in the editor

i want to do this on the server side if possible - could be on the client side but i prefer not having to deal with javascript if possible

3 Answers, 1 is accepted

Sort by
0
Accepted
Martin
Telerik team
answered on 09 Jun 2010, 12:28 PM
Hello EJ,

I would suggest that you review the following help article:

Focus the text boxes in the edit control

I hope this helps,
Martin
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
EJ
Top achievements
Rank 1
answered on 09 Jun 2010, 03:44 PM
that makes a javascript that run on the client side

my problem is that I need to conditionally (not all the time) set the focus to a particular cell in the grid from the server side

i have a linkbutton that determines where the focus should be and may set the focus to a radtextbox or it may set the focus to a particular cell in the grid. both the linkbutton and the radgrid are in an updatepanel. when the linbutton_clicked server event fires it does processing to tell where to put the focus to on the page next. the part of the server side code that does radtextbox.focus() works fine but I'm not sure how to invoke the javascript function made using the code you referred to me from the server conditionally from server side code on the linkbutton_clicked event.
0
EJ
Top achievements
Rank 1
answered on 09 Jun 2010, 06:24 PM
i tried the non javascript option and it seems to work - thanks!
Tags
Grid
Asked by
EJ
Top achievements
Rank 1
Answers by
Martin
Telerik team
EJ
Top achievements
Rank 1
Share this question
or