Categories | Question details Back To List | ||
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 <options>. 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 Answer posted by Support on Aug 04, 2008 08:16 >> Can i do that (with combobox+xml) load first element into div, LIKE compobox with <options> Yes, you can intialize combo in the div container. Please see sample in the documentation http://www.dhtmlx.com/docs/products/dhtmlxCombo/samples/initialization/combo_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: <option value=".." selected="1">...</option> 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. |