This question is locked. New answers and comments are not allowed.
Hi,
I have 2 problems with deleting row in grid (ajax databinding mode)
1. Need to have confirmation, that user is sure that he want to delete row. Confirmation box is comming up when user clicks delete button. But it doesn't mather what user presses in confirmation (ok, or cancel), the row is being deleted any ways.
columns.Command(p => p.Delete()).Width(100).Width(100).HtmlAttributes(new { onclick = "return confirm('Are you sure?')" });
2. After user click delete button (with confirmation box or without) row is deleted from database, but grid is not refreshed.
Row disapears after manual refresh.
Thank you for help in advance