Nested datatable with 1.10

Nested datatable with 1.10

muzammilrmuzammilr Posts: 4Questions: 2Answers: 0

Trying to create a nested datatable http://fiddle.jshell.net/w6Hnj/ . but I can only see the table after
1) i have clicked on the first row +
2) then clicked on seconds row +

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Answer ✓

    You want to initialise the inner DataTable after you run row.child(format(row.data())).show(); since your format function is returning a string (i.e. there is not node for DataTables to operate on).

    Allan

  • muzammilrmuzammilr Posts: 4Questions: 2Answers: 0

    thx allan got it working by moving DataTable({ }) from format to , after row.child(format(row.data())).show();

This discussion has been closed.