Add the ability to select grid rows by providing data objects from a viewmodel instead of specifying html/css selectors. For example: var myGrid = $('#myGrid').data('kendoGrid'); myViewModel.Items.forEach(function(item) { myGrid.select(item); });
Hello,
The problem with the desired approach is that the data items inside the data source which one wants to select may not be on the current page(if paging is enabled) thus the grid will not be able to select them.
Other than that there is a corelation between the tr element representing the row and the data item. They both have an unique uid that can be used to select them. Meaning that using the data source items to select a row is achievable. Here is a dojo illustrating this approach.
Regards,
Angel Petrov
Progress Telerik
Similar to this : http://jsbin.com/anozap/2/edit I tried this but obviously the selection does not stay when re-ordering, grouping, filtering the grid