PDA

View Full Version : Ext.PagingToolbar, getting the clicked button



Rodkun
19 Apr 2010, 10:09 PM
Hi,

Is there a way I can get to know which button was clicked in the paging toolbar?

Here is my code for the paging toolbar:


var myPaginator = new Ext.PagingToolbar({
pageSize: GLOBAL_GRID_MAX_ROWS
,store: myGridStore
,displayInfo: true
});

myPaginator.on('beforechange', function(obj, params) {

Ext.MessageBox.confirm("Reminder", 'Are you sure you want to navigate away from this page?<br>All unsaved work will be lost.', function(s) {
if(s == "yes") {
alert(true);
} else {
alert(false);
}
});
return false;
});