Event fired before data binding takes place.
Parameters
Name | Type | Description |
---|---|---|
e | {object} | event data |
records | {array} | the list of records |
Examples
sample
<table id="grid"></table>
<script>
var grid = $('#grid').grid({
dataSource: '/Players/Get',
columns: [ { field: 'ID', width: 56 }, { field: 'Name' }, { field: 'PlaceOfBirth' } ]
});
grid.on('dataBinding', function (e, records) {
alert('dataBinding is fired. ' + records.length + ' records will be loaded in the grid.');
});
</script>