DataTables hidden row details
DataTables hidden row details
GnobarEl
Posts: 2Questions: 0Answers: 0
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.
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.
This discussion has been closed.
Replies
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!
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.