Master Detail Grid
Master Detail Grid
Following params will enable detail grid, and by default 'id' (PK) of parent is passed to detail grid. (see master-detail.php)
$opt["detail_grid_id"] = "list2";
In order to invoke multiple detail grid, you can pass grid identifier in this way.
$opt["detail_grid_id"] = "list2,list3,list4";
To extra params passed to detail grid, column name comma separated
$opt["subgridparams"] = "gender,company";
$g->set_options($opt);
...
...
# To read passed params in detail grid code
$company = $_GET["company"];
Resources
- Sample Code
- See Live Demo
- You can check this demo in archive
demos/master-detail/master-detail.php