Triggered when the page size is changed.
Parameters
Name | Type | Description |
---|---|---|
e | {object} | event data |
newSize | {number} | The new page size |
Examples
sample
<table id="grid"></table>
<script>
var grid = $('#grid').grid({
dataSource: '/Players/Get',
uiLibrary: 'bootstrap',
columns: [ { field: 'ID', width: 36 }, { field: 'Name' }, { field: 'PlaceOfBirth' } ],
pager: { limit: 2, sizes: [2, 5, 10, 20] }
});
grid.on('pageSizeChange', function (e, newSize) {
alert('The new page size is ' + newSize + '.');
});
</script>