Hello Community,
I am trying to set up a column to have a dropdown filter.
The dropdown list display correctly, and filter fine when I select a value.
However the default value is select but the list is not filtered on the first load.
Here is my code:
$sqlstatus = "select distinct statuscode as k, $lang as v from modules_statuses where modname='HD'";
$col = array();
$col["title"] = "Status";
$col["name"] = "etat";
$col["width"] = "5";
$col["search"] = true;
$col["editable"] = true;
$col["edittype"] = "select"; // render as select
$str = $g->get_dropdown_values($sqlstatus);
$col["editoptions"] = array("value"=>$str);
$col["formatter"] = "select"; // display label, not value
$col["stype"] = "select"; // enable dropdown search
$col["searchoptions"] = array("value" => ":;".$str,"defaultValue"=>"0");
$cols[] = $col;
What I have missed??
Thanks,
Cedric