Unselect all records from the grid.
Examples
sample
<button id="btnSelectAll" class="gj-button-md">Select All</button>
<button id="btnUnSelectAll" class="gj-button-md">UnSelect All</button>
<br/><br/>
<table id="grid"></table>
<script>
var grid = $('#grid').grid({
dataSource: '/Players/Get',
columns: [ { field: 'ID', width: 56 }, { field: 'Name' }, { field: 'PlaceOfBirth' } ],
selectionMethod: 'checkbox',
selectionType: 'multiple'
});
$('#btnSelectAll').on('click', function () {
grid.selectAll();
});
$('#btnUnSelectAll').on('click', function () {
grid.unSelectAll();
});
</script>