I have added an alert to the dataModel to cancel going to the next page and filtering if there is unsaved data in the grid.
beforeSend: function(jqXHR, settings){
if(pageHasChanges){
var answer = confirm("Unsaved changes will be lost!");
if(!answer){
grid.hideLoading();
return false;
}
}
Everything works correctly except the page number is still incremented even though the paging was canceled. Is there a way to stop the increment from happening?