rowDataBound

Event fires after insert of a row in the grid during the loading of the data.

Parameters

NameTypeDescription
e {object} event data
$row {object} the row presented as jquery object
id {object} the id of the record
record {object} the data of the row record

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('rowDataBound', function (e, $row, id, record) {
         alert('rowDataBound is fired for row with id=' + id + '.');
     });
 </script>