Event fires after the loading of the data in the grid.
Parameters
Name | Type | Description |
---|---|---|
e | {object} | event data |
records | {array} | the list of records received from the server |
totalRecords | {int} | the number of the all records that can be presented in the grid |
Examples
sample
<table id="grid"></table>
<script>
var grid = $('#grid').grid({
dataSource: '/0_6/Grid/GetPlayers',
columns: [ { field: 'ID' }, { field: 'Name' }, { field: 'PlaceOfBirth' } ]
});
grid.on('dataBound', function (e, records, totalRecords) {
alert('dataBound is fired. ' + records.length + ' records are bound to the grid.');
});
</script>