а

How to temporarily hide dhtmlx grid's combo option?


#1

We can have in the grid column type=“combo” (it means the cells will be combo boxes) and after loading the grid I would like to dynamically show or hide options in the combo. So I click on a checkbox in the grid and if it is checked I will show only 2 options, otherwise I will show all the options. How to do that? Is it possible?


#2

There is no API allowing to hide/show the options of the combo, but you may add/delete the options.
Please, try to get your combo object:
https://docs.dhtmlx.com/grid__combo_integration.html#gettingcellcolumnobject
and use the addOption/deleteOption:
https://docs.dhtmlx.com/combo__operations_with_combobox_s_options.html#addingoptiontocombo