Mar 15, 2010, 5:01 AM
[CLOSED] [1.0] combobox InsertItem error
Hi,
I have a combo box in a menu, please reffered to previous topic http://forums.ext.net/showthread.php...8063-16-1.aspx.
With your suggests all works fine, but if I add items runtime before "open" combobox the operation combobox.InsertItem(...) generates the error "combobox is not define".
I try to add items (always runtime) after "open" combobox" and all works fine...I do not understand why...maybe the event <GetListParent Handler="return this.el.up('.x-menu');" /> does the difference.
With term "open" I mean that I click on the menu that contains the combo.
What can I do to avoid the error ? I have to "simulate" open or do something else ?
Many thanks,
Paolo
I have a combo box in a menu, please reffered to previous topic http://forums.ext.net/showthread.php...8063-16-1.aspx.
With your suggests all works fine, but if I add items runtime before "open" combobox the operation combobox.InsertItem(...) generates the error "combobox is not define".
I try to add items (always runtime) after "open" combobox" and all works fine...I do not understand why...maybe the event <GetListParent Handler="return this.el.up('.x-menu');" /> does the difference.
With term "open" I mean that I click on the menu that contains the combo.
What can I do to avoid the error ? I have to "simulate" open or do something else ?
Many thanks,
Paolo