dataBinding

Event fired before data binding takes place.

Parameters

NameTypeDescription
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>