getSelectionsReturns: array

Return an array with the ids of the selected record.

Examples

sample

    
 <button id="btnShowSelection">Show Selections</button>
 <br/><br/>
 <table id="grid"></table>
 <script>
     var grid = $('#grid').grid({
         dataSource: '/0_6/Grid/GetPlayers',
         columns: [ { field: 'ID' }, { field: 'Name' }, { field: 'PlaceOfBirth' } ],
         selectionMethod: 'checkbox',
         selectionType: 'multiple'
     });
     $('#btnShowSelection').on('click', function () {
         var selections = grid.getSelections();
         $.each(selections, function() {
             alert(this);
         });
     });
 </script>