Hi,Abu,
In this sentence:
$col["editoptions"]=array("onchange"=> array("sql"=>"select * from table",
"search_on"=>"key","callback"=> "init_field"));
May I modify it into:
$col["editoptions"]=array("onchange"=> array("value"=>"this.value.toUpperCase()","sql"=>"select * from table",
"search_on"=>"key","callback"=> "init_field"));
Can it work??
Rgds,
It wont work. Alternate would be to make values to uppercase, when filling select dropdown.
See UPPER(name) in code below.
$str = $g->get_dropdown_values("select distinct UPPER(name) as k, name as v from clients");
$col["editoptions"] = array(
"value"=>$str,
"onchange" => array(
"sql"=>"select * from clients",
"search_on"=>"name",
"callback" => "fill_form" )
);