Nested Table with Fixed Columns

Nested Table with Fixed Columns

benrimmerbenrimmer Posts: 7Questions: 0Answers: 0
edited December 2011 in General
Hello there,

I was just wondering if anybody has managed to get a nested table to work with fixed columns that match the parent table. Essentially I need to get a summary row that can be expanded to show the detail rows. Both tables have the same columns and ideally the scrolling could be handled by the scroller of the parent table.

Hopefully somebody has managed to get this working.

TTFN
Ben

PS. Very nice control btw.

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    I'm trying to remember if I've done this before - I think I have, but if so it is in propriety code I'm afraid so I don't have a working example at the moment. But thinking about it I don't see any reason why it wouldn't be possible - you just need to call the fnUpdate method on the FixedColumns instance when you do the row open/close to have it reflect the extra TR element in the table.

    Allan
  • benrimmerbenrimmer Posts: 7Questions: 0Answers: 0
    Hi Allan

    Thanks for an extremely quick response.

    Would I need to call fnUpdate on the datatable and the fixedcolumns essentially adding half of the cells to each? Or just call it on the fixed columns?

    Many thanks
    Ben
  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    Just on the FixedColumns instance I think: http://datatables.net/docs/FixedColumns/2.0.1/#fnUpdate_details

    Allan
This discussion has been closed.