How to delete multiple records in grid using kendo

2019-07-21 18:06发布

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

标签: kendo-ui
1条回答
乱世女痞
2楼-- · 2019-07-21 18:42

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));
})
查看更多
登录 后发表回答