countReturns: int

Return the number of records presented on the screen.

Examples

sample

    
 <button id="btnShowCount">Show Count</button>
 <br/><br/>
 <table id="grid"></table>
 <script>
     var grid = $('#grid').grid({
         dataSource: '/0_6/Grid/GetPlayers',
         columns: [ { field: 'ID' }, { field: 'Name' }, { field: 'PlaceOfBirth' } ]
     });
     $('#btnShowCount').on('click', function () {
         alert(grid.count());
     });
 </script>