I have problem with confirmation popup during deleting item. When I click "Delete" confirmation window is popup-ing more times than one, and I don't know why. And second question is how I can change text of that window? I tried This code but don't work:
columns: [
...,
{command: [{name: "destroy", text: "Delete Item", click: deleteItem}],
title: " ", width: "100px"}
]
and function for delete:
function deleteItem(e) {
var item = this.dataItem($(e.currentTarget).closest("tr"));
if (confirm("delete item " + item.Name + " ?")) {
var grid = $("grid").data("kendoGrid");
grid.dataSource.remove(item);
grid.dataSource.sync();
grid.refresh();
}
}
edited: second problem which I found is, after click update button some items from grid are removed