Results 1 to 3 of 3

Thread: Window doesn't Destory its Descendants on Close

  1. #1
    Sencha User
    Join Date
    Mar 2009
    Posts
    43

    Default Window doesn't Destory its Descendants on Close

    I have a window. you can see it in the link below. after close and open it, it doesn't reset the grid and its data. when close method of window is called, doesn't it destory all its descendant components?


    http://www.flickr.com/photos/[email protected]/5368880287/

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    Closing a window does destroy all the nested components, but a store isn't a component.

    A store will only be destroyed by it's component if it's configured with autoDestroy:true.

  3. #3
    Sencha User
    Join Date
    Mar 2009
    Posts
    43

    Default

    Condor,

    very thanx for your reply. my problem is as you said to define the store as a global variable and with autoDestroy:false

    so, i have created the store using factory pattern with autoDestroy:true. this solved my problem.

Similar Threads

  1. window doesn't want to close
    By intro in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 1 Sep 2010, 3:16 AM
  2. Window.close() vs userInitiated close action?
    By Ozone in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 12 Feb 2010, 7:20 AM
  3. Window hide then close vs window close... Problems re-opening the window.
    By zhegwood in forum Ext 3.x: Help & Discussion
    Replies: 7
    Last Post: 11 Jan 2010, 5:42 PM
  4. how to destory tabpanel ...?
    By ajaxvador in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 4 Apr 2009, 1:52 PM
  5. Show() doesn't rerender window after close() is called
    By bluesapphire in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 18 Aug 2008, 5:23 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •