mleibman / SlickGrid

A lightning fast JavaScript grid/spreadsheet
http://wiki.github.com/mleibman/SlickGrid
MIT License
6.81k stars 1.98k forks source link

Slickgrid check box #838

Open altafnagri opened 10 years ago

altafnagri commented 10 years ago

if I checked one row in slickgird on first page. The row remain checked in second page. Please guide.

wly19891018 commented 5 years ago

$('.ui-icon-seek-first').on('click', function () { //choose the first page button if (this.className.indexOf('ui-state-disabled') == -1) { // if the class is not disabled grid.setSelectedRows([]); //clear the content array of selected rows } }); $('.ui-icon-seek-prev').on('click', function () { //choose the prev page button if (this.className.indexOf('ui-state-disabled') == -1) { grid.setSelectedRows([]); } }); $('.ui-icon-seek-next').on('click', function () { //choose the next page button if (this.className.indexOf('ui-state-disabled') == -1) { grid.setSelectedRows([]); } }); $('.ui-icon-seek-end').on('click', function () { //choose the end page button if (this.className.indexOf('ui-state-disabled') == -1) { grid.setSelectedRows([]); } });