Get ID of dynamically loaded combo using dhtmlXComboFromSele

Hi,

I am dynamically creating dhtmlx combos in my page load using dhtmlXComboFromSelect. In another event I want to access the combo objects, but now I do not have the handle/reference to the combo object which was created in the form load event.
Please help.

Thank you
Sravanthi

Hi,

dhtmlXComboFromSelect returns combo object:

var combo = dhtmlXComboFromSelect(“selectId”);

Hi ,

I think you did not get my question right. Please see the below code.

function funcreatecmb(cmbid)
{
var cmb = dhtmlXComboFromSelect(cmbid);
cmb.enableFilteringMode(true);
}
The function funcreatecmb is dynamically called in the page load event based on the number of select boxes I have in my form.
Now in another event I want to access the Dynamically created combos and do some action. However I do not have the object reference of the Dynamically created combos.
Please help.
Thanks
Sravanthi Sontha

Hi,

var combos = [];

combos.push(funcreatecmb(cmbid));
combos[0].setComboText(“default text”);

function funcreatecmb(cmbid)
{
var cmb = dhtmlXComboFromSelect(cmbid);
cmb.enableFilteringMode(true);
return cmb;
}

Hi !

Really ?
There isn’t any kind of getDHTMLXelementById or at least getDhtmlxComboById?

Hi,

No, there is not.