dataBound

Event fires after the loading of the data in the grid.

Parameters

NameTypeDescription
e {object} event data
records {array} the list of records
totalRecords {number} 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: '/Players/Get',
         columns: [ { field: 'ID', width: 56 }, { field: 'Name' }, { field: 'PlaceOfBirth' } ]
     });
     grid.on('dataBound', function (e, records, totalRecords) {
         alert('dataBound is fired. ' + records.length + ' records are bound to the grid.');
     });
 </script>