[ASK] Dependent Combo Box in dhtmlxGrid cell

Hi there,

Is it possible to make dependent combo box in dhtmlxgrid cell?
e.g : The content of combo box column B based on user selection in combo box column A

thanks,
Dizzie

hi!

Is it possible to make dependent combo box in dhtmlxgrid cell?
e.g : The content of combo box column B based on user selection in combo box column A

thanks

Yes is possible.


mygrid.attachEvent(“onEditCell”, doOnEditCell);


function doOnEditCell(stage, id, index, new_value, old_value) {
if ((index == 2) && (stage == 2)
var combo = mygrid.cells(id, 3).getCellCombo();
combo.addOption(‘1’, ‘option1’);
combo.addOption(‘2’, 'option2);
}
}