Row grouping (or sub-rows)
Row grouping (or sub-rows)
Hi, I've seen the example regarding row grouping here: https://datatables.net/examples/advanced_init/row_grouping.html . Is it possible to group some rows under a disclosure icon to open them up and reveal the rows underneath, such as for rows that are different locations of the same business? Trying to show an example just using text.
Jim's Canteens 102 Burned Ln Phoenix AZ Manager: Jim Jones 6025551123
- Starbucks (multiple matches)
Starbucks 1108 Welldone Rd Phoenix AZ Manager: Mike Williams 6025551212
Starbucks 1060 Anyplace Ave Tempe AZ Manager: Fred Thomas 4805551212
I've also seen the example of sub-rows for additional details: https://datatables.net/examples/api/row_details.html. It seems like I almost am looking for something which combines these two features.
This question has an accepted answers - jump to answer
Answers
I was looking at RowGroup, https://datatables.net/extensions/rowgroup/ , and I notice it mentions that collapsing groups is on the wish list but isn't available yet. Gotcha.
Yup - I've still to come up with a good way to do it that will interface with DataTables' paging.
Allan