Event fires on selection of row
Parameters
Name | Type | Description |
---|---|---|
e | {object} | event data |
$row | {object} | the row presented as jquery object |
id | {string} | 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: '/Players/Get',
columns: [ { field: 'ID', width: 56 }, { field: 'Name' }, { field: 'PlaceOfBirth' } ],
selectionMethod: 'checkbox'
});
grid.on('rowSelect', function (e, $row, id, record) {
alert('Row with id=' + id + ' is selected.');
});
</script>