dhtmlxconnector:grid_columns [DHX documentation]

PHP Connector DHTMLX


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:

  • hardcoded list
$grid->set_options("item_nm",array("1" => "one", "2"=>"two","3" => "three")); // value => label
  • list created on base of different table
$options = new OptionsConnector($res);

co/combo type

  • when using predefined list of data, both values and labels need to be provided
  • when using connector, there must be two fields selected, one as (value), second as (label)

coro type:

  • only labels need to be provided
  • connector may define only label parameter