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.
- 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
dhtmlx.com/docs/products/dhtmlxG … _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
aaa1