pageSizeChange


Triggered when the page size is changed.

Examples

  
Edit this example
<table id="grid"></table> <script> var grid = $('#grid').grid({ dataSource: '../Grid/GetPlayers', columns: [ { field: 'ID' }, { field: 'Name' }, { field: 'PlaceOfBirth' } ], pager: { enable: true, limit: 2, sizes: [2, 5, 10, 20] } }); grid.on('pageSizeChange', function (e, newSize) { alert('The new page size is ' + newSize + '.'); }); </script>