Hi I am trying to add a confirm delete box
If i add a confirm dialog to the ActionComplete event
if (confirm("Are you sure ? ")) {
PageMethods.DeleteIt(ganttRec, onSucceeded, onFailed);
if (data.hasChildRecords) {
deleteChildRecords(data);
}
}
The Confirm Dialog is popping up and if I select cancel the delete is not synced to DataBase, but unfortunatly the GUI itself is updated and the Task is deleted in the view.
After reloading the page by getting the data out of the DB its fine.
How can I avoid that the view will be updated with the deleted record?
Or is there maybe a build in delete confirm Dialog?
Thanks for help
Martin