Need some examples of a responsive nested datatable within a responsive datatable.
Need some examples of a responsive nested datatable within a responsive datatable.
Renuka_S
Posts: 1Questions: 1Answers: 0
I am looking for some examples of a datatable which is responsive having a nested datatable which is again responsive.
This discussion has been closed.
Answers
Hi Renuka_S,
I am not entirely sure if my example will help you, but it shows my approach on having a child row shown that in itself represents a datatable. The copy/paste is unfiltered so data may not make sense, and do not expect this to work as a copy/paste in your own project.
On line 15 I am using a formatter helper function to actually draw the child data as a table.
On line 17 I "grab" that node and turn it into a DataTable, here you could easily add the
"responsive": true
bit.The code snippet above produces the following visual example: screenshot
It should clearly reveal that the child "row" is in fact a DataTable.
Hope this helps,