Row grouping (or sub-rows)

Row grouping (or sub-rows)

joshlevine102joshlevine102 Posts: 44Questions: 16Answers: 2
edited March 2018 in Free community support

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

  • joshlevine102joshlevine102 Posts: 44Questions: 16Answers: 2

    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.

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin
    Answer ✓

    Yup - I've still to come up with a good way to do it that will interface with DataTables' paging.

    Allan

This discussion has been closed.