javascript - multiple child rows in datatable -
i have exiting php/javascript application generates table rows , corresponding child rows(there can many of them, retrived db @ once), hidden default. child rows shown after user clicks button placed in table row. looks this(one parent, 2 children): http://i.imgur.com/hul9ft9.png
it generated php:
for($i = 0; $i < count($shiparr); $i++) { echo ' <tr> <td><span>'.$shiparr[$i]["orderno"].'</span></td> </tr> <tr> <td> <table id="details"> ;' for($j = 0; $j < count($shipdetailsarr[$i]); $j++) { echo ' <tr> <td> <p> <span>order number: </span><span>'.$shipdetailsarr[$i][$j]["lineno"].'</span> </p> </td> </tr> '; } echo '</table>;' } can use somehow objects $shiparr , $shipdetailsarr populated db create same effect using datatables plugin? how can achieve this?
thanks help.
i dont't think there database plugin can automatically generate table. should use table generator. can program in e.g. php.
if hard there classes can this. 2 examples are:
good luck!
Comments
Post a Comment