Multiple rows selection in Kendo grid
Microsoft Net Framework

The following steps demonstrate how to select multiple rows in grid.

1) Set selectable mode to multiple in the options of the grid.

                  
                   $("#rowSelection").kendoGrid({
                        dataSource: {
                            data: orders,
                        },
                        .Selectable(selectable => selectable
                                          .Mode(GridSelectionMode.Multiple))
                        .
                        .
                        .  
                    });

 

2) Now access these rows to perform desired action through jquery.

 

    var grid = $("#rowSelection").data("kendoGrid");

    var selectedRows = grid.element.find(".k-state-selected");

    selectedRows.each(function(){

            var row = $(this);

            var dataItem = grid.dataItem(row);

   });

 

 

 

Share This with your friend by choosing any social account


Upcoming Articles
You may also read following recent Post
Copyright Future Minutes © 2015- 2024 All Rights Reserved.   Terms of Service  |   Privacy Policy |  Contact US|  Pages|  Whats new?
Update on: Dec 20 2023 05:10 PM