Sri
Sri

Reputation: 91

How to delete multiple records in grid using kendoui

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

Upvotes: 2

Views: 3247

Answers (1)

Petur Subev
Petur Subev

Reputation: 20193

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));
})

Upvotes: 3

Related Questions