how do use array to initialize combo in dhtmlgrid?

how do use array to initialize combo in the cell of grid?



thanks.


To add options in the ‘combo’ eXcell type using Java Script array you can use following code:


var combo=mygrid.cellByIndex(rowIndex,cellIndex).getCellCombo(); // getting object of a cell combo
combo.addOption([[1,1111],[2,2222],[3,3333],[4,4444],[5,5555]]);