Table inside a childrow of another table

Table inside a childrow of another table

troy07troy07 Posts: 1Questions: 0Answers: 0

I am new to datatables and jquery. I have tow tables, of which one is from the modal and now i realize now that i need to take the table from the modal put it inside the row of my standard. the row id of my standard is needed to on the new child datatable

https://datatables.net/forums/discussion/36297/how-to-load-a-datatable-inside-a-row-of-other-datatable-using-child-rows-extra-information
The link above is something similar however they only have another table and are just formatting the extras into a table.

what i need is to have: https://datatables.net/examples/api/row_details.html containing https://datatables.net/examples/basic_init/zero_configuration.html as a child row. how is that possible?

Replies

  • kthorngrenkthorngren Posts: 2,784Questions: 19Answers: 618

    This is an example of the child row table being a Datatable:
    http://live.datatables.net/sawapoci/1/edit

    This example gives each child Datatable the same ID. Basically allowing only one open instance with a child table. You will likely want to provide a different ID (based on the row ID) for each child table if you allow for multiple rows to be open simultaneously.

    Kevin

Sign In or Register to comment.