javascript - Grouping selected rows in kendo grid -
i'm using kendo grid. programatically selecting rows grid. want group or show selected rows together.
i using following approach.
- getdatasource of grid
- get highlighted rows
- splice highlighted rows main datasource & concatinate highlighted spliced array
- reassign datasource grid
- highlight again
this causing performance issue me.
you need following things simplify above process. datasource of kendo grid variable.
you selected arrays using grid.select() method. each selected row, find index in main datasource array using indexof method. remove each element using datasource.remove(item). add again same element index 0 using datasouce.add(). once process done selected element, highlight elements first grid.select().length elements.
Comments
Post a Comment