When on client-side you specify co/coro/combo columns (combo-box/select) in grid, grid will automatically request data for them in the same manner as for filtration options.
By default, grid will use DISTINCT select against related field, and fetch all possible options.
If you need to define custom list of options you can use one of 2 ways:
$grid->set_options("item_nm",array("1" => "one", "2"=>"two","3" => "three")); // value => label $grid->render_table("grid50","item_id","item_nm,item_cd");
$options = new OptionsConnector($res); $options->render_table("countries","country_id","country_id(value),country_name(label)"); $grid->set_options("item_nm",$options); $grid->render_table("grid50","item_id","item_nm,item_cd");
co/combo type
coro type: