Row Grouping - List the same item in multiple groups?

Row Grouping - List the same item in multiple groups?

goatusgoatus Posts: 1Questions: 0Answers: 0
edited June 2012 in General
Hi all,

First off, thanks for this amazing platform - hugely useful, and even more props for the great documentation provided - great stuff.

I have successfully included the Row Grouping plugin to my DataTable - but in my application I have rows that will be under multiple groups. ie. Row 5 might be in a group "Group 1" and a group "Group 2". While all the other rows may be in only one of each of the groups. Is it possible (with the Row Grouping plugin or another method), to have Row 5 show up twice (once under each group)?

Cheers, and thanks once again.

Regards
Chris

Replies

  • jasminejasmine Posts: 6Questions: 0Answers: 0
    The only way I know of that will let you do this is to insert it twice into your table, with group 1 on the first instance and group 2 on the second.

    This is because datatables' row grouping plugin relies on the first (not sure if that can be adjusted offhand) column for its grouping, and then hides that column.
This discussion has been closed.