I\'m trying to get the page number as a parameter when the next button is clicked.
I\'m trying to achieve it using the below code:
Try this
onPaging: function(pgButton){ if(pgButton=="next_your_paging_tool_id"){ window.alert("next clicked! \n page: " + $('#userlist').getGridParam('page')); } },
append the ID of your paging tool ID with a _ in your if condition as in the code posted