change dynamically the source of grid2-dropdown list based on grid1.column1

Questionschange dynamically the source of grid2-dropdown list based on grid1.column1
Pierre Aaron Mata Trejo asked 2 years ago

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
Abu Ghufran Staff answered 2 years ago
_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

15 + 4 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?