dataBinding

Event fired before data binding takes place.

Parameters

NameTypeDescription
e {object} event data
records {array} the list of records received from the server

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('dataBinding', function (e, records) {
         alert('dataBinding is fired. ' + records.length + ' records will be loaded in the grid.');
     });
 </script>