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.

  • 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



getColumnCombo() doesn’t seem to exist.

To use combo excell ( and related API ) you need to include dhtmlxgrid_excell_combo.js
dhtmlx.com/docs/products/dhtmlxG … 3305406000