-
3 Nov 2010 7:26 AM #1
Replace Container dynamically with onclick
Replace Container dynamically with onclick
Hi,
I am new to Sencha touch.
I would like to remove a container (either destroy or removeall) and then add a new form in that old container.
I cannot use setcard becos i am not using a card layout.
Here comes the code
Now on button click handler i want to replace the content of the above container completely and add a new form to that container.Code:var rightMovingCont = new Ext.Container({ flex:3, html: '<div id="contentRight">Bitte wählen Sie ein Kontakt von Links.</div>', id:'rightContent', ui:'dark', scroll:'vertical', draggable:false });
I could able to remove all by using
But how to create a new container with a form and add it there.Code:rightMovingPanel.destroy();
Any help?
Similar Threads
-
Best way to add components to container dynamically
By sjmittal in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 18 Oct 2010, 1:17 AM -
Replace panel dynamically
By PCSpectra in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 14 Jan 2010, 12:09 PM -
Add Dynamically Component to a Container
By chaby in forum Ext GWT: DiscussionReplies: 1Last Post: 28 Aug 2009, 1:52 AM -
how to dynamically replace ContentPanel with new created BorderLayout?
By slacker in forum Ext 1.x: Help & DiscussionReplies: 0Last Post: 20 Apr 2007, 12:48 AM


Reply With Quote