Showing sub-rows

Showing sub-rows

clifford_ivesclifford_ives Posts: 2Questions: 0Answers: 0
edited October 2011 in DataTables 1.8
Is there a way to display a recursive relationship within the table? For example, you want to show rows of data that are children of another row within the grid. It should be visibly easy to differentiate between what row is a parent and what row(s) is a child. Any help would be great.

thanks.
cliff

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    DataTables natively supports "drill-down" rows, this parent-child relationship, but it is only 1 level deep, not anything recursive.

    http://www.datatables.net/blog/Drill-down_rows

    it works by opening a new row with a single cell. you can put arbitrary HTML in the cell. I suppose you could put another DataTable into that cell and hack your own recursive tree.

    view of example page above and debugger view of html:
    http://i.imgur.com/VW25b.png
  • clifford_ivesclifford_ives Posts: 2Questions: 0Answers: 0
    Thanks for the response. Looks like I am going to try to hack the drill down rows in order to simulate a recursive relationship.
  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    DataTables might not be the product for you. There are other tree-view products out there that might be better.
This discussion has been closed.