Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Apr 27, 2009 22:11
open dhtmlx forum
how do use array to initialize combo in dhtmlgrid?

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

thanks.
Answer posted by dhxSupport on Apr 28, 2009 05:37

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]]);