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

Set focus to next row and column control

3 Answers 243 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Cihan
Top achievements
Rank 1
Cihan asked on 19 Mar 2015, 12:37 PM
Hello, 

I have a radgrid in edit mode (Inline editMode) and multi rows edit. 
In this grid a have a Date Column (GridTemplateColumn with a raddatepicker in edit template)

I change the date and type enter. This  save the item  automatically and will go to the next row in the same column


To do this a have used OnKeyPressed on the grid and set to radAjaxmanager a methode to execute (javascrip) OnResponseEnd.

My code works fine in Firefox and Mozilla .
With IE the first time it is working than not 

Can some one help me ?

Thanks

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 24 Mar 2015, 11:15 AM
Hi Cihan,

Instead of using the OnResponseEnd to achieve this requirement, try opening the next row directly on server-side using the ItemUpdating or ItemUpdated event handlers.

Hope this helps.

You can also check the recently introduced Batch editing provided by RadGrid:
http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx

Regards,
Eyup
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Cihan
Top achievements
Rank 1
answered on 24 Mar 2015, 01:47 PM
Hi Eyup, 

Thanks for your response. 

I have found the solution. 

In javascrip for ie when you want to set the focus, you have to use : document.getElementByID('focusId').select();
and it works in IE 11.




0
Eyup
Telerik team
answered on 27 Mar 2015, 09:27 AM
Hi Cihan,

I'm glad you've found a viable solution for your scenario and thank you for sharing your experience with our community.

Regards,
Eyup
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Grid
Asked by
Cihan
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Cihan
Top achievements
Rank 1
Share this question
or