Post new topic Reply to topic  [ 3 posts ] 

Board index : GWT-Ext Forums : GWT-Ext 2.x Discussion

Author Message
 Post subject: [CLOSED] Any way to dynamically expand/collapse a panel?
PostPosted: Tue Mar 25, 2008 7:19 pm 
Offline

Joined: Thu Feb 28, 2008 2:11 pm
Posts: 26
Is it possible to expan a collapsed panel by pressing a button in another panel. The code below doesn't seem to work but I'm not sure if it is possible. Also the title doesn't get set, is this also not possible?

Code:
panelA.getSaveButton().addListener(new ButtonListenerAdapter(){
            public void onClick(Button button, EventObject e) {   
               panelB.setCollapsed(false);
                           panelA.setTitle("Saved");
               panelB.doLayout();
                          panelA.doLayout();
            }
         });


Thanks


Back to top
 Profile  
 
 Post subject: Re: Any way to dynamically expand/collapse a panel?
PostPosted: Wed Mar 26, 2008 5:51 pm 
Offline
Site Admin

Joined: Fri Dec 14, 2007 12:27 pm
Posts: 1017
Have you make panelB collapsible?

Code:
panelB.setCollapsible(true);


Only collapsible panels can be collapsed / expanded.

Sanjiv


Back to top
 Profile  
 
 Post subject: Re: Any way to dynamically expand/collapse a panel?
PostPosted: Wed Mar 26, 2008 8:34 pm 
Offline

Joined: Thu Feb 28, 2008 2:11 pm
Posts: 26
Sorry user error :(


Back to top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

Board index : GWT-Ext Forums : GWT-Ext 2.x Discussion


Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Style by Midnight Phoenix & N.Design Studio
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.