detailExpand


Event fires when detail row is showing

Parameters

NameTypeDescription
e {object} event data
detailWrapper {object} the detail wrapper as jQuery object
record {object} the data of the row record

Examples

  
Edit this example
<table id="grid"></table> <script> var grid = $('#grid').grid({ dataSource: '../Grid/GetPlayers', detailTemplate: '<div/>', columns: [ { field: 'ID' }, { field: 'Name' }, { field: 'PlaceOfBirth' } ] }); grid.on('detailExpand', function (e, $detailWrapper, record) { $detailWrapper.empty().append('Place of Birth: ' + record.PlaceOfBirth); }); </script>