Ext


Go Back   Ext JS Forums > Ext GWT Premium Forums > Gxt: Premium Help

Reply
 
Thread Tools
  #1  
Old 11-06-2009, 01:08 PM
ypfamily ypfamily is offline
Ext GWT Premium Member
 
Join Date: Jun 2009
Location: USA
Posts: 96
ypfamily is on a distinguished road
Question TreePanel within a ContentPanel

Hi,

I have Window that I open up at some point of the application. The window contains a content panel which has its height smaller than the height of the entire window (because I am going to have other components added into that window later).

I am setting the height of the content panel and adding a TreePanel into that content panel. However, when I expand the nodes of the tree, they go below the border of the content panel and the scrollbar doesn't appear within that content panel for me to be able to scroll through the items in the TreePanel.

Here is the code:
public class MyWindow extends Window
{
   public MyWindow()
   {
       MyContentTreePanel p = new MyContentTreePanel();
       this.add(p);
       
   }
}


public class MyContentTreePanel extends ContentPanel
{
    public MyContentTreePanel()
    {
        this.setHeight(100);
        .....
        TreePanel<ModelData> treePanel = new TreePanel<ModelData>(treeStore); 
        treePanel.setCheckable(true);
        this.add(treePanel);
    }
}
What do I have to do to get that to work?

Thanks,
Yaakov.
Reply With Quote
  #2  
Old 11-10-2009, 02:59 AM
sven sven is offline
Ext GWT - Development Team
 
Join Date: Sep 2007
Location: Germany
Posts: 4,259
sven is on a distinguished road
Default

Can you please post some complete and worknig testcode that implements entrypoint?
Reply With Quote
  #3  
Old 11-10-2009, 10:15 AM
ypfamily ypfamily is offline
Ext GWT Premium Member
 
Join Date: Jun 2009
Location: USA
Posts: 96
ypfamily is on a distinguished road
Default

Actually, I figured it out already. I just added this to MyContentTreePanel's constructor:

setLayout(new RowLayout(Orientation.VERTICAL));

add (treePanel, new RowData(-1, 1));
Reply With Quote
Reply

Thread Tools

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -5. The time now is 08:16 AM.

© 2006-2009 Ext, LLC
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.