[CLOSED] close window when its parent is not visible anymore

  1. #1

    [CLOSED] close window when its parent is not visible anymore

    Hi,

    I have a Panel inside a TabPanel. When the user clicks a button, a window is displayed.
    How can I automatically close the window when its parent is not visible anymore. Which event do I need to handle?

    thanks.
  2. #2
    Yuo can use Hide event of Panel and hide Window in that event handler
  3. #3
    Hi Vladimir,

    some of my pages exemplify a high degree of nestedness, so what happens is that for the topmost panel (inside a tab panel or card layout) the hide event gets triggered but the nested panels know nothing about it. can i somehow notify them automatically that they are being hidden or do i need to implement my own event notification mechanism?

    thanks

    Quote Originally Posted by Vladimir View Post
    Yuo can use Hide event of Panel and hide Window in that event handler
  4. #4
    You can use MessageBus to notify subscribers
    https://examples2.ext.net/#/MessageBus/Basic/Simple/
  5. #5
    That looks good. I will give it a shot.

    thanks a lot.

    You can close the thread.



    Quote Originally Posted by Vladimir View Post
    You can use MessageBus to notify subscribers
    https://examples2.ext.net/#/MessageBus/Basic/Simple/

Similar Threads

  1. [CLOSED] Problem to close Window which has another Window inside
    By asztern in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Dec 21, 2010, 5:33 PM
  2. Replies: 4
    Last Post: Nov 22, 2010, 10:25 AM
  3. [CLOSED] How to close a Ext Window from server side and refresh parent
    By GmServizi in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Apr 15, 2010, 7:56 AM
  4. Close Parent Window from Autoload iFrame
    By Tbaseflug in forum 1.x Help
    Replies: 3
    Last Post: Nov 16, 2009, 11:51 AM
  5. Replies: 1
    Last Post: Apr 01, 2009, 12:24 PM

Tags for this Thread

Posting Permissions