Slickgrid checkbox and filtering problems -


i have slickgrid populated data, , have first checkbox column added via:

if (info.includeselectcheckbox) {     var checkboxselector = new slick.checkboxselectcolumn({         cssclass:"slick-cell-checkboxsel"     });      info.columns.splice(0, 0, checkboxselector.getcolumndefinition());  }  grid = new slick.grid(elem, dataview, info.columns, options);  if (info.includeselectcheckbox) {     grid.setselectionmodel(new slick.rowselectionmodel({selectactiverow:false}));     grid.registerplugin(checkboxselector);     var columnpicker = new slick.controls.columnpicker(info.columns, grid, options); } 

i have filter textbox, filters data in grid different criteria.

the problem is, when select checkbox items in grid , filter grid, selected checkboxes either stay on old indexes, matching different records, or gone grid , don't reappear when remove filtering.

i'd have checkbox selections independent of filtering, whenever play filter selected items stay selected until manually uncheck them.

i tried add checkboxes via regular column formatter, selection gone when start filtering.

you need call dataview.syncgridselection(grid).

see https://github.com/mleibman/slickgrid/wiki/dataview#synchronizing-selection--cell-css-styles.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -