Hello Abu, I’ve a column like this that works fine:
$col = array();
$col[“title”] = “Luoghi”;
$col[“name”] = “luoghi”;
$col[“editable”] = true;
$col[“formatter”] = “select”;
$col[“edittype”] = “select”;
$str = $g->get_dropdown_values(“select UUID as k, luogo as v from luoghi order by luogo asc”);
$col[“editoptions”] = array(“value”=>$str);
$col[“editoptions”][“multiple”] = true;
$cols = $col;
But when I add this row:
$col[“editoptions”][onload][sql] = “select UUID as k, luogo as v from luoghi order by luogo asc”;
every time I try to edit the record, the previous multiple selections are lost (they are correctly highlighted in blue when the dialog form open but after few milliseconds they are no longer highlighted.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?