How to delete multiple records in grid using kendoui

∥☆過路亽.° 提交于 2019-12-10 22:36:18

问题


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


来源:https://stackoverflow.com/questions/13697307/how-to-delete-multiple-records-in-grid-using-kendoui

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!