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

Model.set removes the row selection in Grid

1 Answer 31 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Salim
Top achievements
Rank 1
Salim asked on 22 Mar 2017, 09:49 AM
Why when calling Model.set the row selection gets cleared?

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 23 Mar 2017, 11:58 AM
Hello Salim,

When an item is updated, the Grid is repainted with the new data, and the selection is lost. You can follow an approach like the one, demonstrated in the following how-to article from our documentation:

http://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/Selection/persist-row-selection-while-paging

... adapting it to scenarios with editing as well, e.g.:

http://dojo.telerik.com/aFazo

I hope this helps.

Regards,
Dimiter Topalov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Salim
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or