Categories | Question details Back To List | ||
SelectBox I am creating an empty grid with three columns. The columns types are defined by mygrid.setColTypes("ed,ed,coro"); Then in response to user input I add rows via mygrid.addRow(newId,"XXX,00116",mygrid.getRowsNum()) How can I set the coro column to be a list box with four values? Is this done when I initialize the grid or when the row is added? What is the syntax? Many thanks Answer posted by dhxSupport on May 04, 2009 02:13 How to manipulate with "coro" eXcell type please see more information here http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Selectbox_collections.html#grid_art_selectbox Answer posted by Alex (support) on May 04, 2009 02:16 Hello, yes, you can change the colunm type after grid intialization. Try to use setCellExcellType method. For example: function setType(id){ ... mygrid.addRow(newId,"XXX,00116",mygrid.getRowsNum()) mygrid.forEachRow(setType); var c = mygrid.getCombo(0); ... Please, see http://dhtmlx.com/docs/products/dhtmlxGrid/doc/alpha.html for more details |