Declined
Last Updated: 05 Mar 2020 15:36 by ADMIN
Alexey
Created on: 10 Mar 2012 03:54
Category: Grid
Type: Feature Request
14
Selecting rows in Grid
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); });
2 comments
ADMIN
Angel Petrov
Posted on: 05 Mar 2020 15:36

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Imported User
Posted on: 11 Oct 2013 16:46
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