Categories | Question details Back To List | ||
Grid and Combo integration I'm confused about dhtmlxGrid and dhtmlxCombo integration. First I found in documentation that XML should looks like this: <row id="1"> <cell xmlcontent="0"><value>a</value><url>combo/php/complete.php</url></cell> </row> but, then I found this site: http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/interaction_other_components/pro_combo.html and there is no word about such xml. How it should be done to set URL of xml? Answer posted by Support on Dec 13, 2007 02:14 Sorry for misleading information in documentation. Ņurrent version provides new syntax for combo integration. You can set combo mode only in <column> tags. You set <source> tags with path to combo xml inside <column> tags The current syntax of combo-in grid is next 1) In cells you can set only default "values" of options. <row id="1"> <cell>1</cell> <cell>1</cell> <cell>Austria</cell> </row> ... 2) Combo options list set in header only: - by options tags: <rows> <head> <column width="150" type="combo" align="left" sort="str">Column 1 <option value="1">one</option> ... <option value="10">ten</option> </column> - by source tag with path to combo xml <column width="150" type="combo" align="left" sort="str">Column <source>data.xml</source> </column> 3) To set "selectbox" mode you have to use <editable> tag and "false" as its value: <column type="combo" ...>Selectbox Mode <editable>false</editable> <source>data.xml</source> </column> 4) Filtering mode is set by using filter tag, for example: <column width="150" type="combo" align="left" sort="str">Filtering Mode <filter>true</filter> <option value="1">one</option> ... 5) Autocomplete mode. To set this mode you need to use following tags: - auto : true | false - enable | disable autocomplete mode - source path to autocomplete source - cache true | false - enable | disable XML caching - sub true | false - enable | disable auto load additional suggestions on selecting last loaded option For example: <column width="150" type="combo" align="left" sort="str">Autocoplete Mode <auto>true</auto> <source>complete.php</source> <cache>false</cache> <sub>false</sub> </column> |