pageChanging

Triggered before the change of the page.

Examples

sample

    
 <table id="grid"></table>
 <script>
     var grid = $('#grid').grid({
         dataSource: '/0_6/Grid/GetPlayers',
         uiLibrary: 'jqueryui',
         columns: [ { field: 'ID' }, { field: 'Name', sortable: true }, { field: 'PlaceOfBirth' } ],
         pager: { limit: 2, sizes: [2, 5, 10, 20] }
     });
     grid.on('pageChanging', function (e, newPage) {
         alert('The new page is ' + newPage + '.');
     });
 </script>