mleibman / SlickGrid

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

setting pageSize to all when grouping #1090

Open JLIVE101 opened 8 years ago

JLIVE101 commented 8 years ago

Just a question, is there a way to subscribe a function when grouping is triggered. I have a grid that shows 25 rows per page. However when i group by a type, for i.e province. Ontario will be split across multiple pages inside the pager. The only fix i found for this problem is to set the page size to all before grouping is assigned. Is there a simpler way to do this rather than adding

dataView.setPagingOptions({pageSize: 0}); before every dataView.setGrouping({ ... });?

6pac commented 8 years ago

No, I think the way you have described is the best. You can always declare your own function to do both the setPagingOptions and setGrouping, and just call that.

JLIVE101 commented 8 years ago

Ah I see... thanks for the feedback!