getReturns: object

Return record from the grid based on position.

Parameters

NameTypeDescription
position {int} The position of the row that needs to be return.

Examples

sample

    
 <button id="btnGetData">Get Data</button>
 <br/><br/>
 <table id="grid"></table>
 <script>
     var grid = $('#grid').grid({
         dataSource: '/0_6/Grid/GetPlayers',
         columns: [ { field: 'ID' }, { field: 'Name' }, { field: 'PlaceOfBirth' } ]
     });
     $('#btnGetData').on('click', function () {
         var data = grid.get(3);
         alert(data.Name + ' born in ' + data.PlaceOfBirth);
     });
 </script>