Hi abu, here looking to have the following.
In grid1 i have next settings:
$opt[“detail_grid_id”] = “list2”;
$opt[“subgridparams”] = “id,idserie”;
in grid2 have a column with:
$col = array();
$col[“title”] = “SubSerie”;
$col[“name”] = “idsubs”;
$col[“formatter”] = “select”;
$str2 = $grid2->get_dropdown_values(“select id as k, concat(clave,concat(‘-‘,descrip)) as v from subseries where client_id=”.$IDSERIE);
$col[“edittype”]=”select”; $col[“editoptions”] = array(“value” => $str2, “separator” => “:”, “delimiter” => “;”);
$cols2[] = $col;
obviously the use of $IDSERIE in the source of the dropdown list doesn’t work….
1 Answers
Closing as duplicate.
CHANGE DYNAMICALLY THE SOURCE OF GRID2-DROPDOWN LIST BASED ON GRID1.COLUMN1
Your Answer