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
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'
}
});
this.dataVar.showAt(/*parameters*/);
}
});
thisVar.items.push(me.personList);
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....