Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Haresh Shahani on Dec 23, 2008 08:54
open dhtmlx forum
combo excell type in grid

We are trying to set up an autocomplete inside a grid, but it does not seem to be working.

The following line of code:

addressGrid.setColumnExcellType(2,"combo");

gives the error "undefined is null or not an object"
I have included the codebase/excells/dhtmlxgrid_excell_combo.js file in the page.

The function setColumnExcellType works with parameter of "ro","ra" etc... but gives the above error with input of "combo"
Does the configuration of the grid have to be in XML if we want to use the combo excell type in grid?

Thanks,
Haresh.
Answer posted by Support on Dec 24, 2008 01:48
 - beware that method available only in pro version
 - method need to be called only after related column initialized 
- be sure to init combo and fill it with options before column type changing
           var combo=mygrid.getColumnCombo(0);
           mygrid.setColumnExcellType(0,"combo");

working sample sent by email.

In common case you can define column type as part of setColTypes command and need not to use setColumnExcellType


Answer posted by Bob Palin on Jan 29, 2009 10:40
getColumnCombo() doesn't seem to exist.
Answer posted by Support on Jan 30, 2009 00:38
To use combo excell ( and related API ) you need to include dhtmlxgrid_excell_combo.js
http://dhtmlx.com/docs/products/dhtmlxGrid/samples/interaction_other_components/pro_combo.html?un=1233305406000