Can we add dhtmlxcombo with checkbox into dhtmlx grid?
Following are the ways which we have tried but couldn’t find the way to add dhtmlxcombo with checkbox into dhtmlx grid.
1: Tried to convert htmltable into grid using dhtmlXGridFromTable()
|
Column 1 |
|
value 11 |
value 12 |
value 21 |
value 22 |
</tr>
2: Intilalize grid coluln as combo and then tried to set its property as checked.May be this is not the correct approach to get dhtmlxcombo.
function doCSLevelFormInitGrid()
{
csLevelFormGrid = new dhtmlXGridObject('cslevelform_container');
csLevelFormGrid.setImagePath("dhtmlx_suite/imgs/");
csLevelFormGrid.setSkin("dhx_skyblue");
csLevelFormGrid.setHeader("#,Consent Tier,Participant Responses");
csLevelFormGrid.setColTypes("ro,ro,combo");
csLevelFormGrid.setInitWidths("50,50,80");
csLevelFormGrid.setColAlign("left,left,center");
csLevelFormGrid.init();
csLevelFormGrid.loadXML("grid.xml");
var csLevelFormGridCombo2 = csLevelFormGrid.getColumnCombo(2);
csLevelFormGridCombo2.addOption([['value','label'],['value2','label2'],['value3','label3']]);
csLevelFormGridCombo2.setChecked(2,true);
}
Is there any another way to add dhtmlxcombo with checkbox into dhtmlx grid?
Thanks,
~Shital.
You may try to use “clist” ExCell type.
Here is the example:
dhtmlx.com/docs/products/dht … extra.html