Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    TreeGrid horizontal sroll problem

    Hi, all!
    I need help with TreeGrid component (SmartGWT-1.3).
    I found on forum some problem like my but answer don't help :(.
    How i can enable horizontal scroll?
    Its my code :
    Code:
    public class BrowserForm extends Layout implements BrowserPresenter.Display
    {
    
       private TreeGrid browserItemTreeGrid;
    
       private HandlerManager eventBus;
    
       public BrowserForm(HandlerManager eventBus) 
       {
          this.eventBus = eventBus;
    //      setOverflow(Overflow.HIDDEN);
          setBackgroundColor("#FFEEAA");
          setTitle("Browse");
          browserItemTreeGrid = new TreeGrid();
          browserItemTreeGrid.setShowHeader(false);
          
          browserItemTreeGrid.setAutoFetchData(true);
          browserItemTreeGrid.setCanReorderRecords(false);
          browserItemTreeGrid.setCanAcceptDroppedRecords(false);
          browserItemTreeGrid.setCanFreezeFields(true);
          browserItemTreeGrid.setCanReparentNodes(false);
          browserItemTreeGrid.setShowOpenIcons(true);
          browserItemTreeGrid.setLeaveScrollbarGap(false);
          browserItemTreeGrid.setShowRoot(true);
          browserItemTreeGrid.setHeight100();
          browserItemTreeGrid.setWidth100();
          addChild(browserItemTreeGrid);
    Vertical scroll works, fine.

    Thanks,

    #2
    i saw that scroll is appear after table header is resized by mouse ( i set the bigger width ).
    how he can set automatically resizing of the header ( grid has only one header ) according to table content ?
    thanks

    Comment


      #3
      Code:
      setShowHeader(false);
      setFixedFieldWidths(false);

      Comment

      Working...
      X