Java Connector-define combo column with autocomplete

How do I produce this with the Java Connector?

<column width="150" type="combo" source="../13_interaction_other_components/php/complete.php" auto="true" cache="true" align="left" sort="str">Autocoplete Mode</column>

The first case:

[code]
GridColumn column1 = new GridColumn(String header, String type, String id, int width, String align, String valign, String sort, String color, Boolean hidden);
GridColumn column2 = …

GridConfiguration myConfig= new GridConfiguration();
myConfig.addColumn(column1);
myConfig.addColumn(column2);[/code]

The second case:

[code]GridColumn column1 = new GridColumn();
GridColumn column2 = …

column1.setHeader(“Column1”);
column1.setType(“ed”);

GridConfiguration myConfig= new GridConfiguration();
myConfig.addColumn(column1);
myConfig.addColumn(column2);[/code]

What about for the “source”,“auto”,“cache” attributes?

Thanks

source - points to the java servlet, other options are optional ( they enables client side data caching and auto-suggest mode )

column1.setSource(url); ???
column1.setAutocomplete(true)??;

It seems that current API can’t be used to set such properties during server side configuration :frowning:

I just ended up editing the source and adding them to the API. Can you confirm that the xml from the first post is valid. I am getting an

Uncaught TypeError: Cannot call method ‘indexOf’ of undefined
dtmlXMLLoaderObject.doXPathdhtmlx.js:34
eXcell_combo.fillColumnCombosdhtmlxgrid_excell_combo.js:17
(anonymous function)dhtmlxgrid_excell_combo.js:8
a.eventCatcher.ddhtmlx.js:42
a.callEventdhtmlx.js:42
xmlLoader.onloadActiondhtmlx.js:958
check

That error was unrelated. I did not have smartrendering enabled in the javascript but had the connector set for it. Causing some problems. It is working now.

Thanks

Does the load config for the grid support this? I thought I had it working but I am unable to load the autofiltering combo from the XML now. Was this updated with the new Connector update?

Code of grid configuration was not changed in the latest connector update, it must work the same as in previous version.