如何使用Kendoui删除网格中的多个记录 [英] How to delete multiple records in grid using kendoui

查看:91
本文介绍了如何使用Kendoui删除网格中的多个记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网格,其中有网格中每个项目的复选框.我需要删除网格中的多个选中项.我如何在kendo ui中做到这一点.

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.

此致

斯里兰卡

推荐答案

单击按钮时,使用jQuery查找包含选中复选框的所有TR元素,然后使用

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

这篇关于如何使用Kendoui删除网格中的多个记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆