I have a combo box created and filled:
window.dhx_globalImgPath="./Common/imgs/Combo/";
WindowsSkinCombo=new dhtmlXCombo(“WindowsSkinZone”,“alfa1”,328,‘image’);
WindowsSkinCombo.loadXML("./Common/imgs/Skins/Windows/windows.xml");
and
<?xml version="1.0" ?>
Aqua Dark
Aqua Orange
Aqua Sky
Clear Blue
Clear Green
Clear Silver
Modern Black
Modern Blue
Modern Red
Standard
Web
That is working fine. Now, I save the selected item by using: WindowsSkinCombo.getSelectedValue()
But when I load the saved value, how do I then make the item be the currently selected one?
I thought is was: WindowsSkinCombo.setComboValue(value) but that just changes the actual value, not make it the selected one.
The call of setComboValue must change both value and text of combo, if it doesn’t work correctly for you - please try to use attached js file instead of original one.
dhtmlxcombo.zip (9.07 KB)