Using rowGroup: Group & Un-group on demand?
Using rowGroup: Group & Un-group on demand?
Hi! I am wondering if there is a way to group and un-group my dataTable on demand?
What I mean by this is that I am able to group my table when it first loads, but ideally, I would like the table to load with no grouping until the user requests it to be grouped by clicking a button. I tried using table.rowGroup().dataSrc($this).data('column')); but that only allows me to change which column the table is being grouped by.
Not sure if you need a test case for this inquiry as nothing is "broken," I am just looking for a specific feature that I was unable to find documentation of or any other requests throughout the forum.
Thanks in advance for any help!
This discussion has been closed.
Replies
The
rowGroup().enable()API might do what you need.Kevin