Combo groups defaults Value

Hi… my question is next:



I using dhtmlxCombo    Grouping



var z3=new dhtmlXCombo(“combo_zone3”,“alfa3”,200);

z3.loadXML(“3.php”)

z3.setComboText(“c2_2”);



var z2=new dhtmlXCombo(“combo_zone2”,“alfa2”,200);

z2.enableFilteringMode(true);

z2.attachChildCombo(z3,“3.php”);

z2.loadXML(“2.php”);

z2.setComboText(“b2_1”);



But only show fisrt combo and the second combo too show but hide quickly… how control thats…??



Tanks…



In your case the first combo has not any value selected ( you have set only text in combo, no any option selected ) , the working code will look as

var z2=new dhtmlXCombo(“combo_zone2”,“alfa2”,200);
z2.enableFilteringMode(true);
z2.attachChildCombo(z3,“3.php”);
z2.loadXML(“2.php”,function(){
z2.setComboValue(“b2_1”);
});



Ok, but the second combo don´t show the value… the code is next:



var z3=new dhtmlXCombo(“combo_zone3”,“alfa3”,200);
z3.enableFilteringMode(true,function(){
    z3.setComboText(“c2_2”);})




var z2=new dhtmlXCombo(“combo_zone2”,“alfa2”,200); 
z2.enableFilteringMode(true); 
z2.attachChildCombo(z3,“3.php”); 
z2.loadXML(“2.php”,function(){
     z2.setComboValue(“b2_1”);
}); 




 



The  combos work fine, first load, and second show values when selected first combo, but default value en the second combo don´t show fine


Yep, the second combo still reloads after value set to “master” combo which caluse value reset, the next code must work correctly



var z3=new dhtmlXCombo(“combo_zone3”,“alfa3”,200);
z3.loadXML(“3.php”,function(){
z3.setComboText(“c2_2”);
})


var z2=new dhtmlXCombo(“combo_zone2”,“alfa2”,200);
z2.enableFilteringMode(true);
z2.attachChildCombo(z3,“3.php”);
z2.loadXML(“2.php”,function(){
z2.setComboText(“b2_1”);
});