1
ParamQuery Pro Evaluation Support / Cancel remote paging and filtering
« on: September 20, 2016, 07:50:26 pm »
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.
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?
Code: [Select]
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?