DHTMLX Docs & Samples Explorer

When grid has co|coro columns ( select|combo-box ), it will automatically request data for it in same manner as for filtering options. So it possible to use similar way of logic to define which list of values need to be used in select|combo inside the grid.

	$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");

In case of options in grid

In case, when connector used only to fill select-filter