getReturns: object

Return record from the grid based on position.

Parameters

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

Examples

sample

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