DataTables hidden row details

DataTables hidden row details

GnobarElGnobarEl Posts: 2Questions: 0Answers: 0
edited October 2011 in DataTables 1.8
This may be a dumb question, but i can't get how to make it work.

How can I add a specific detail for every row.

I'm using this example.
http://www.datatables.net/release-datatables/examples/api/row_details.html

When you click the "plus" button, you can see this
"Extra info: And any further details here (images etc)"

how can I add different extra info for every row?
Details that aren't seen on columns. Imagin I have 2 columns, "First Name", "Second Name". How can I add "age" on details?


Thanks for your support.

Replies

  • LuysLuys Posts: 15Questions: 0Answers: 0
    edited October 2011
    Hi!
    I think the best way is to create one or more hidden columns with values ​​that fit for what we want do, whether images paths, or as in your example a column called "Age" with the respective years number in each row. You just have to find in the site what is the formula to generate a table with hidden columns.
    Actually in the header formula all is made of two elements: a common part static (text "Age:") and a particular one dynamic for each row ('+aData[Field or hidden column number ]+').
    It is a starting point...

    Good luck!
  • tcourseytcoursey Posts: 3Questions: 0Answers: 0
    Did you ever figure this out. I didn't see your post and want to do the same, I posted another thread about it.

    I have several "rows" of data that I want to be hidden under each main row. Or I could do the hidden columns, but not sure exactly how to approach. Thanks for any info you have gathered.
This discussion has been closed.