Hybrid View

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    25
    Vote Rating
    0
    akshar_jamgaonkar is on a distinguished road

      0  

    Default Unanswered: Hide treepanel on popup window close

    Unanswered: Hide treepanel on popup window close


    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

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,085
    Answers
    675
    Vote Rating
    467
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Please provide a small working example of what you have setup.

    Scott.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    25
    Vote Rating
    0
    akshar_jamgaonkar is on a distinguished road

      0  

    Default


    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'
    }
    });
    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....



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


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

  4. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,085
    Answers
    675
    Vote Rating
    467
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    I am glad you figured it out ... and thank you for reporting back.

    Scott.

Thread Participants: 1

Tags for this Thread