Can this be done using Editor?
Can this be done using Editor?
boicenet
Posts: 47Questions: 12Answers: 1
I have two db tables (orders, order details). I'd like to use Datatables/Editor for displaying and editing the data. Am I able to configure my datatable to display the orders data with the details as child rows (and to be able to edit all displayed data)? I'm new to Datatables/Editor, but have accomplished a lot so far by reading the docs, other posts, etc.. I'm just stuck on this one piece for now. -Thanks.
This discussion has been closed.
Answers
Hi,
It sounds a lot like the example in this blog post, but with the child table in a child row rather than being below the main table.
Yes that should be quite possible, although you would need to use the
row().child()
methods to control the child rows and have it display the child table. I'm afraid I don't currently have an example of that I can link you to.Allan
Thanks, Allan.
I saw that blog post, but became confused especially with there being two joined tables. I'll see what I can figure out.