View Full Version : RenderTo not displaying after item is clicked

23 Feb 2014, 6:57 PM

I added a combo box in the treepanel by adding a <span> in the treestore then render the combo box in it by using renderTo like the following:

Ext.select('#' + id).each(function(el){ Ext.create('Ext.form.ComboBox', {
fieldLabel: '',
store: treeStore,
queryMode: 'local',
renderTo: el


It successfully shows all the combo box correctly when page load. However, whenever an item is clicked, the combo box in that selected item will be disappeared.

I even tried to add an itemclick event to add the combobox back. By using firebug, I saw the new combo box can be added but still disappears after the itemclick event.

May I know how could I retain the combo box after item click? Thanks a lot!