我正在使用分组列表,我想选择多个项目进行删除,删除使用id但不能使用已更改的事件获取id。我正在使用ajax服务进行删除,并希望将所选的id作为参数传递。我在下面提到了我的数据源。是否有任何使用id删除项目。 先谢谢!
$("#simpleList").dxList({
dataSource: employees,
height: "100%",
grouped: true,
collapsibleGroups: true,
onSelectionChanged: function (e) {
var id = e.addedItems[0].items
itemArray.push(id);
}
});
var employees = [{
"key": "IT",
"items":["Choose between PPO and HMO Health Plan", "Google AdWords
Strategy", "New Brochures", "Update NDA Agreement"]
}, {
"key": "BD",
"items": ["Update Personnel Files", "Review Health Insurance Options Under the Affordable Care Act"]
}];