Master/child tables using Datatables + Editor
Master/child tables using Datatables + Editor
Hello, All!
Currently I am using jtable.org script for my projects but I want to replace it with Datatables.net due to its rich functionality. However there is one important question to solve before replacing: is it possible to use Master/Child tables (nested) using Datatables?
The reason is that it is very convenient to use Master/Child tables when working with multiple tables in database. Please see this demo-example: http://jtable.org/Demo/MasterChild. Is there the same functionality in Datatables?
P.S. I have seen the example regarding the child rows (https://datatables.net/examples/api/row_details.html), however I need to nest not only rows, but the whole another table relating to selected row of master table. And possibly there could be several nested tables in each other. Is it possible to do with Datatables?
Thank you for explanation.
Answers
The child row example is still the way to go. If you look closely at it you'll be able to see that you can put any HTML you want into the child row, including another table (and even enhance that to be a DataTable).
DataTables itself doesn't "care" (in so-much as software can!) what you put in the child row - it has no knowledge of it.
Allan