Categories | Question details Back To List | ||
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... Answer posted by Support on Sep 02, 2008 01:52 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"); }); Answer posted on Sep 02, 2008 07:48 Ok, but the second combo don´t show the value... the code is next: var z3=new dhtmlXCombo("combo_zone3","alfa3",200);
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 Answer posted by Support on Sep 02, 2008 08:50 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"); }); |