kendo grid get all selected items 1

kendo grid get all selected items

var grid = $("#grid").data("kendoGrid");
var selected = [];
grid.select().each(function(){
    selected.push(grid.dataItem(this));
});

Here is what the above code is Doing:
1. Get the grid object
2. Create an empty array
3. Loop through each selected row
4. Push the dataItem into the array

Now you can use the selected array to do whatever you want.

Similar Posts