nityajs
January 21, 2015, 9:37pm
#1
Hello,
Is there any way I can get all the options of a combo created using XML item type=“Combo”. I was able to get the combo object but unable to get the list of options in this combo. Please help.
var comboobj = myForm.getCombo(‘combos’);
Any help on this would be great.
Darya
January 22, 2015, 12:36pm
#2
Hello
There is no ready method, but you can iterate options and push in an array/objet the next way:
var i = myCombo.getOptionsCount();
...
myCombo .getOptionByIndex[i]
nityajs
January 27, 2015, 4:52pm
#3
When I try to use var i = myCombo.getOptionsCount();, I see error “Object doesn’t support this property or method.”
Darya
January 28, 2015, 12:53pm
#4
So, you use old version. This method was added in 4.0. You need to update your dhtmlx to use this functionality