{
command: [{ name: "delete1", click: deleteItem }], title: " ", width: 100
},
{
command: [{ name: "delete2", click: deleteItem, template: "<div class='btn-link'><span class='glyphicon glyphicon-remove'></span></div>" }], title: " ", width: 100
}
function deleteItem(e) {
var dataItem = this.dataItem($(e.currentTarget).closest("tr")); if (confirm('are yousure : ' + dataItem.Name)) {
...
}
}
my problem is delete1 command work fine , but delete2 command can't firing the deleteItem event, any one can help me? thanks!
command: [{ name: "delete1", click: deleteItem }], title: " ", width: 100
},
{
command: [{ name: "delete2", click: deleteItem, template: "<div class='btn-link'><span class='glyphicon glyphicon-remove'></span></div>" }], title: " ", width: 100
}
function deleteItem(e) {
var dataItem = this.dataItem($(e.currentTarget).closest("tr")); if (confirm('are yousure : ' + dataItem.Name)) {
...
}
}
my problem is delete1 command work fine , but delete2 command can't firing the deleteItem event, any one can help me? thanks!