[CLOSED] How to clean up dynamically created controls?

  1. #1

    [CLOSED] How to clean up dynamically created controls?

    We have a complex page that creates alot of windows and form controls dynamically on button clicks. The windows are created, displayed, and then closed. How can I make sure ExtJS is cleaning up the DOM and memory correctly? I see that the more windows I create, the more memory IE uses. When I look in WindowManager, those windows are not there. I want to make sure the windows' items are also cleaned up correctly.

    More importantly, is creating windows and form controls on the fly a good design pattern to follow?
    Last edited by Daniil; Sep 14, 2011 at 7:12 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Which version of Ext.NET are you using?

    As well, if closing a Window should destroy it, please ensure you set CloseAction="Close" on your Window config.
    Geoffrey McGill
    Founder
  3. #3
    We are using v1.0.3880.25517.
  4. #4
    Can you provide more information about windows content?
    Do you use Content or Items?

    Please note that widget doesn't destroy Content widgets during own destroying

Similar Threads

  1. saving dynamically-created controls' values
    By Skizzot223 in forum 1.x Help
    Replies: 1
    Last Post: Apr 16, 2012, 12:54 PM
  2. [CLOSED] Unable to access dynamically created controls
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 07, 2011, 5:49 AM
  3. Replies: 6
    Last Post: Jun 18, 2010, 4:23 PM
  4. Dynamically created controls cookbooks
    By arodier in forum 1.x Help
    Replies: 15
    Last Post: May 07, 2010, 7:12 PM
  5. [CLOSED] Unable to render controls within dynamically created TabPanel
    By Hari_CSC in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 29, 2010, 10:04 AM

Posting Permissions