DHTMLX COMBOBOX

Dear DHTMLX Support Team!



I use 2 combobox with xml, Can i do that (with combobox+xml) load first element into div, LIKE compobox with .



And the secound question I save the form with 2 combobox that store the values.



I would like reopen the saved form . I would like see intto the first combox what i saved . And would like see the child into the secound comobox . I hope so everything is clear,sorry my gramar





[form] before svaed



i woild like see without any click ‘apple’.



xml —> apple --------> child XML–> green

pear ---------> --> yellow



i choose apple with green, saved the from into the database



i reopen the form



i would like see into teh first combobox —> apple and the secound --> green



Thanks

Can i do that (with combobox+xml) load first element into div, LIKE compobox with

Yes, you can intialize combo in the div container. Please see sample in the documentation dhtmlx.com/docs/products/dht … _init.html

>> I would like reopen the saved form . I would like see intto the first combox what i saved .

If you reload combobox and generate xml using some server-side script, you can set selected=“1” attribute for the necessary option in the xml:

    …

Also you can select option by the combo API:

    combo.selectOption(combo.getIndexByValue(opt_value));

There opt_value is the value of the option which should  be selected.

If  described approach is not what you need, please provide more details.