-
15 Sep 2010 1:23 AM #1
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!
This code construct don't work, as to me to make this?Code:function displayFormWindow() { if(!MyWindow.isVisible()) { resetMyForm(); MyWindow.show(); } else { MyWindow.toFront(); } }
-
15 Sep 2010 4:17 AM #2
for your handler button, use only
and add an event on your windowPHP Code:handler: function () {
MyWindow.show()
}
PHP Code:MyWindow.on('afterlayout', function () {
resetMyForm();
}, this, {single: true});
-
6 Oct 2010 12:47 AM #3
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
-
6 Oct 2010 1:02 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
Closing a window will destroy all it's nested components (you didn't 'render' components did you?).
Similar Threads
-
Cross-window objects
By MichaelOstrovsky in forum Community DiscussionReplies: 5Last Post: 19 May 2009, 6:15 AM -
how to create multiple window objects
By arunaK in forum Ext 2.x: Help & DiscussionReplies: 6Last Post: 22 Oct 2008, 7:15 AM -
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 PluginsReplies: 1Last Post: 18 Jul 2008, 7:12 PM -
extjs throws string objects instead of error objects
By bmf1972 in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 22 Apr 2008, 3:14 AM -
[2.0.1] Window containing FormPanel objects resize problem
By paulsk in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 5 Feb 2008, 3:54 AM


Reply With Quote