I am using Datatables Collapsible/Expandable Grouping.
I have configured it so that all groups collapsed in the initial view. Thanks to ThulasiRam's help, I've integrated group rowcount and collapse/expand all features. Datatables row grouping - how to add rowcount per group and expand/collapse all
I would like to configure the table search to automatically expand groups with rows matching the search, instead of the only the matching groups.
I'd also like to add a reset button to the table search. I've managed to add the "X" button, but I haven't found the way to set click function correctly so that it will reset the table search field.
I've set up a jsfiddle to show what I'm trying to accomplish: http://jsfiddle.net/lbriquet/SBdJd/9/
Any help would really be appreciated!!
I love the collapse all and expand all button works great!
I had to modify it a bit to support the latest version of jquery
plus these style settings .expandedOrCollapsedGroup { width: 125px; float: left; } .dataTables_filter { float: none; } .dtsearch_filter{ float: right; }
Ok i got it turns out you were using the private functions not the public ones, see here
Another issue is you need to keep a reference to your datatable to use its functions. heres the answer