View Full Version : Hide treepanel on popup window close

5 Sep 2012, 1:26 AM
Hi i have a Ext.form.field.Trigger field with a method onTriggerClick implemented which renders a tree panel, i have this Ext.form.field.Trigger added to a popup window, however the problem is when i close the popup, the treepanle doesnot close,

What can i be doing wrong, any suggestions would be appriciated

5 Sep 2012, 1:07 PM
Please provide a small working example of what you have setup.


5 Sep 2012, 10:15 PM
Hi Scott,

I figured it out...here is what i had

thisVar.personList = Ext.create('Ext.form.field.Trigger', {
hidden : true,
emptyText : 'Select Person From Org',
fieldLabel : 'person',
anchor : '95%',
name : 'person',
selectedNode : '',
// validation
dataVar : '',
onTriggerClick : function() {
this.dataVar = Ext.create('Ext.panel.Panel', {
items : /*has a tree panel*/,
floating : true,
layout : {
type : 'fit'

The problem was , this trigger field was put in an popup Window , when i clicked on trigger field the tree panel would display...but on close of popup the pop up window would close but tree panle would be visible still....

i closed / hide it using.......

if(thisVar.personList .dataVar) {
thisVar.personList .dataVar .hide();

6 Sep 2012, 4:16 AM
I am glad you figured it out ... and thank you for reporting back.