Init second table to responsive in cell of main table
Init second table to responsive in cell of main table
alexmurug
Posts: 5Questions: 1Answers: 0
Debugger code (debug.datatables.net): http://live.datatables.net/bihawepu/4819/edit
Description of problem: How can init the child table to be data-table? and to have all functionality when I have nested table and I want to both of them to be responsive.
Thank you in advance and sorry for the raw information is my first post and I will prove to improve and add more information
This discussion has been closed.
Answers
Both of your tables had the same ID (
example
) which is not valid HTML and was preventing them both from initialising: http://live.datatables.net/bihawepu/4823/edit .However, the inner table is not Responsive like that. I'm not sure if there is going to be a way to make that work. I'll need to have a think about it!
Allan
Thank you for info, if you will find solution how to init inner table to be responsive, do not forget to inform me.
By the way I tested also to use Modal (pop-up) to show child details, but I do not found any event or callback after the render to init table. In the link attached I used timeout of 300 ms to init the table in modal, its there some events, or callback when the modal is shown to in init the table? here is link http://live.datatables.net/zeziciqu/28/edit?html,js,output
Kind Regards,
Alex M.
You could try
responsive-display
- that may give you the trigger you're after,Colin
I tried to use responsive-display, but somehow if I use the modal to show children this event is not triggered any more, for default value it is working ok
Could you update your test case to demonstrate that, please.
Colin
The link that responsive-display event works - http://live.datatables.net/jizisisa/1/edit?html,js,console,output - Child details show as master-child
http://live.datatables.net/zeziciqu/28/edit?html,js,output - Show in modal - the reponsive-display event is not triggered
Thanks for that test case, yep, agreed, something doesn't look right there. I've just found an existing thread that also reported that, apologies for the confusion - it would appear our bug tracker doesn't like searches with '-' (for 'responsive-display')! I've added this thread to that ticket, so we'll notify both when there's an update.
Colin
Thank you too!
\We are waiting for an update
Have great job