Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

Parent-Child-Grandchild

$
0
0

I'm attempting to take the parent-child example one step further by opening a grandchild table when a row in the child table is selected.

My test case is here: http://sprintingpress.com/customersinline.html

Select John Doe from Customers to reveal the Jobs table. Selecting Job ID 1 (ORC240A) from Jobs table should reveal Jobitems table (there is one record in jobitems related on job id 1).

customers.id = jobs.customerid
jobs.id = jobitems.jobid

Dev tools shows selecting a row in Jobs posts to jobitems.php, but no form data is in the request (I would expect it to post "jobid: 1"). Sometimes Chrome reports the status of the request as "canceled" with no response at all, other times an empty data set is returned.

Examining the customersTable and jobsTable objects in the console seems to show there is data bound to selected.data() in the first case but not the second. Any ideas about why?


Viewing all articles
Browse latest Browse all 2364

Trending Articles