Categories | Question details Back To List | ||
DHTML Grid I need to insert combobox in the last column of dhtml grid. I have 5 fixed values to be embedded into that combobox always.But the selected value may differ for each row. I want to know * How to insert combobox in one column? * How to add values to that combobox? * How to make specific item in the combobox as selected one for each row individually. Answer posted by Support on Jun 20, 2008 07:53 >>* How to insert combobox in one column?
just define column type as as co grid.setColTypes("ro,ro,ro,co"); >>* How to add values to that combobox? please check http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Selectbox_collections.html#grid_art_selectbox var combo=grid.getCombo(3); combo.put(1,"first"); combo.put(2,"second"); >>* How to make specific item in the combobox as selected one for each row individually. Just define necessary value when adding row grid.addRow(grid.uid(),["a","a","a",1]); // will be rendered as "first" or in XML <row id="some"><cell>a</cell><cell>a</cell><cell>a</cell><cell>1</cell></row> |