1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    15
    Vote Rating
    2
    navr84 is on a distinguished road

      0  

    Default Window close not destroying the child components correctly

    Window close not destroying the child components correctly


    A window is closed using either the close button or window.close function .
    After closing the window if we create another instance of the window it gives the following error -

    'Registering duplicate id '###' with this manger for the a sub -component of the window.
    Am getting this issue in revision 4.2.0.663.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,604
    Vote Rating
    818
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    This works for me:

    Code:
    new Ext.button.Button({
        renderTo : document.body,
        text     : 'Open Window',
        handler  : function() {
            new Ext.window.Window({
                autoShow : true,
                width    : 400,
                height   : 400,
                title    : 'Test',
                html     : 'test',
                id       : 'foo'
            });
        }
    });
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Apr 2011
    Posts
    15
    Vote Rating
    2
    navr84 is on a distinguished road

      0  

    Default


    Sorry...the issue was with my code and has been rectified. Thanks for the help.

Thread Participants: 1

Tags for this Thread