如何使用数据字段“选定”获取复选框列中的所有选定项目?
我已经通过互联网搜索,似乎只有可用的教程是关于如何获取网格的选定行。
以下是我的示例网格。
$("#jqxgrid").jqxGrid({
width: 698,
autoheight: true,
source: dataAdapter,
columnsresize: false,
columnsheight: 25,
sortable: true,
editable: true,
altrows: true,
columns: [{
text: labels[0],
columntype: 'checkbox',
threestatecheckbox: false,
datafield: 'selected',
width: 48,
editable: true,
sortable: false,
}, {
text: labels[1],
datafield: 'fname',
width: 250,
editable: false,
}, {
text: labels[2],
datafield: 'lname',
width: 400,
editable: false,
}]
});