1. #1
    Sencha User Radius-Service's Avatar
    Join Date
    Jul 2010
    Location
    Russia, Perm
    Posts
    47
    Vote Rating
    1
    Radius-Service is on a distinguished road

      0  

    Question Objects in a window are cloned

    Objects in a window are cloned


    Hi all. I created form in a window, when I click on button, open this window, and again click on the button (I don't close this window) all objects in form are "cloning". I must check - if window object created, before I open window, but I don't know why!
    Code:
    function displayFormWindow()
    {
        if(!MyWindow.isVisible())
        {
            resetMyForm();
            MyWindow.show();
        }
        else
        {
            MyWindow.toFront();
        }
    }
    This code construct don't work, as to me to make this?

  2. #2
    Sencha User laurentParis's Avatar
    Join Date
    Aug 2010
    Location
    paris
    Posts
    246
    Vote Rating
    2
    laurentParis is on a distinguished road

      0  

    Default


    for your handler button, use only
    PHP Code:
    handler: function () {
      
    MyWindow.show()

    and add an event on your window
    PHP Code:
    MyWindow.on('afterlayout', function () {
     
    resetMyForm();
    }, 
    this, {singletrue}); 

  3. #3
    Sencha User Radius-Service's Avatar
    Join Date
    Jul 2010
    Location
    Russia, Perm
    Posts
    47
    Vote Rating
    1
    Radius-Service is on a distinguished road

      0  

    Default


    Hm...I have one more question. How to delete window with all objects. After deleted on button click open window with new objects. Just I try to do this, but window doesn't open

  4. #4
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    Closing a window will destroy all it's nested components (you didn't 'render' components did you?).

Similar Threads

  1. Cross-window objects
    By MichaelOstrovsky in forum Community Discussion
    Replies: 5
    Last Post: 19 May 2009, 6:15 AM
  2. how to create multiple window objects
    By arunaK in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 22 Oct 2008, 7:15 AM
  3. Ext.ux.Bridge - an easy way to use Objects from a child window (AIR included)
    By iDave in forum Ext 2.x: User Extensions and Plugins
    Replies: 1
    Last Post: 18 Jul 2008, 7:12 PM
  4. extjs throws string objects instead of error objects
    By bmf1972 in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 22 Apr 2008, 3:14 AM
  5. [2.0.1] Window containing FormPanel objects resize problem
    By paulsk in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 5 Feb 2008, 3:54 AM

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar