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,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi