Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Stéphane NOUHAUD on May 29, 2008 02:41
open dhtmlx forum
How to initialise excell combo in javascript with filtering enabled

Hi,

How i can initialize the excell_combo in filtering mode without using columns header tag

I use the cell tag or define exsiting cell et update source and mode of combo

But when i use addRow i need to pass parameter (mode, source) to combo in this new lines ? how can i do that
in javascript ?

regards,

Stéphane NOUHAUD
Answer posted by Support on May 29, 2008 05:23
Does your combo excell version support getCellCombo() method ?

If it doesn't, please, contact us to support@dhtmlx.com and we are providing you this version.

The following approach  can be used if getCellCombo() is available:
 
    mygrid.addRow(rowId,....)

    mygrid.setCellExcellType(rowId,columnIndex,"combo")

    var combo = mygrid.cells(rowId,columnIndex).getCellCombo();

    combo.enableFilteringMode(1,url,1,1)