-
11 Mar 2008 11:24 AM #1
Combo select item
Combo select item
How do you select an item in a combo box when you are creating the items dynamically:
I tried using "checked" and "selected" but neither worked; I also tried to use the following but it just returned an error:Code:combomenu.menu = new Ext.menu.Menu(); for (i=0;i<comboitem.length;i++) { combomenu.menu.add({ text: comboitem[i], value: comboitem[i] }); }
Error:Code:combomenu.selectByValue(jsonObj.comboitem, false)
Code:combomenu.selectByValue is not a function


Reply With Quote