Nested datatables
Nested datatables
I have a table nested in a main table.
In the ajax property of the main table and the detail table I get the data from an action that returns a Json list that consults a Mysql DB.
when I open the detail with a "+" button) of record one it shows the detail data well, but if I open the detail of record two (without closing the detail of record one) it only shows the structure of the detail table but without data.
on the other hand, if I open the detail of record 10 it shows the detail data correctly, and if later I open the detail of record 9 (without closing the detail of record 10) if it shows the detail data well, that is, if I see the detail of both registers open simultaneously
What I want is that I can open several details simultaneously, but I don't know because if I open them in ascending order, it only shows me the detail of the first record that I open. please help.
Replies
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin
HTML
SCRIPT
$(document).ready(function () {
var table = $("#table_id").DataTable({
If you can't post a link to the page then you will need to do some debugging to let us know what is happening.
Do things like checking the browser's console for errors. Debug the Ajax request/response using the browser's network inspector tool.
Take a look at this blog about ajax loaded detail records. Maybe it will help with your process.
Kevin