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

[Solved] Grid with autoSync: true moves grid_active_cell on change

2 Answers 539 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Malcolm
Top achievements
Rank 1
Malcolm asked on 09 Apr 2015, 12:11 PM

The example below is just your standard "Grid Batch editing" demo with the addition of "autoSync: true" to the dataSource.

    http://dojo.telerik.com/Epawa

If you edit any of the cells (and change the value) the active cell changes to the first cell (Chai).  This does not happen with "autoSync: false".

How can I keep the active cell on the one I am editing?

 

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 10 Apr 2015, 11:17 AM

Hello Malcolm,

This behavior is by design. A sample solution would be use the save event to store the index of the last edited cell and then use the dataBound event handler to set it as active again using the current method of the Grid API. For convenience I updated the example.

I wish you a great day!

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Malcolm
Top achievements
Rank 1
answered on 10 Apr 2015, 11:29 AM
Thanks for your quick response.
Tags
Grid
Asked by
Malcolm
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Malcolm
Top achievements
Rank 1
Share this question
or