Announcement

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

    ListGrid 100% width and 100% height

    Hi,
    Can anyone help me with fit on window for ListGrid?
    SmartGWT version 2.3 snapshot

    In my code i use standard GWT SimplePanel as parent for Canvas.
    Canvas is contains ListGrid.

    Initialization code is:
    Code:
     
    
                    SimplePanel accountGridContainer = new SimplePanel();
                    ListGrid accountsGrid = new ListGrid()
    
                    Canvas wrapper = new Canvas();
    		wrapper.setWidth100();
    		wrapper.setHeight100();
    		
    		accountsGrid.setMargin(0);
    		accountsGrid.setRight(0);
    		accountsGrid.setPadding(0);
    		accountsGrid.setWidth100();
    		accountsGrid.setHeight100();
    		accountsGrid.setShowRecordComponents(true);
    		accountsGrid.setShowRecordComponentsByCell(true);
    
    	        accountsGrid.setAutoFitWidthApproach(AutoFitWidthApproach.BOTH);
    		accountsGrid.setCanAutoFitFields(false);
    		accountsGrid.setCanFreezeFields(false);
    		accountsGrid.setCanGroupBy(false);
    		accountsGrid.setCanDrag(false);
    		accountsGrid.setFilterOnKeypress(true);
    		accountsGrid.setShowCustomScrollbars(false);
    		wrapper.addChild(accountsGrid);
    
                    //Set canvas to SimplePanel 
    		accountGridContainer.setWidget(wrapper);
    When I ran the code I see that ListGrid with Parent canvas is overlaps my SimplePanel?

    How i can do flexible layout?

    Posts with incomplete information are much more likely to be ignored.
    Attached Files

    #2
    Hey

    I'm facing the same problem. Have you found a working solution?

    Comment


      #3
      Hi,

      The short answer is DON'T mix GWT and smartGWT layout containers and widgets.

      See this post -> http://uptick.com.au/content/layout-user-interface re building the user interface using smartGWT's layout containers and widgets.

      Cheers
      Rob

      Comment

      Working...
      X