How to delete multiple records in grid using kendo

2019-07-21 18:54发布

问题:

I am having a grid with checkboxes for each item in the grid. I need to delete the multiple checked items in the grid. How can i do that in kendo ui.

Regards,

Sri

回答1:

When the button is clicked use jQuery to find all TR elements which contain the checked checkboxes and then use the removeRow method. Something like:

$.each($('#GridName :checkbox:checked').closest('tr'),function(){
    $('#GridName').data().kendoGrid.removeRow($(this));
})


标签: kendo-ui