Width in percentage for Grid Panel

  1. #1

    Width in percentage for Grid Panel

    Hi,

    I want to give my grid panel width as 100% to fit complete page. Now, grid panel is taking width in pixel that too integer value.

    Please let us know is there any way to achive this one.

    Thanks,
    Hari
  2. #2

    RE: Width in percentage for Grid Panel

    Hi,

    As I know GridPanel always occupies 100% width (if no explicitly Width). Also you can always use ViewPort with FitLayout to stretch the grid to the whole page
  3. #3

    RE: Width in percentage for Grid Panel

    Hi Hari,

    First place an <ext:Viewport> on your Page, then a <ext:FitLayout> or <ext:ContainerLayout> inside the Viewport, then your <ext:GridPanel> inside the layout.


    + Viewport
    + Fit or Container Layout
    + GridPanel


    And remove .Width setting on GridPanel.


    Hope this helps.
    Geoffrey McGill
    Founder
  4. #4

    RE: Width in percentage for Grid Panel

    Thank you. If I don't set the width, I am not able to see the scrollbar. the grid is expanding but the columns are out side the visible area.

    please help
  5. #5

    RE: Width in percentage for Grid Panel

    Hi,

    Please provide test case

Similar Threads

  1. Height , Width in percentage
    By AnandVishnu in forum 1.x Help
    Replies: 1
    Last Post: Oct 31, 2011, 1:48 PM
  2. [CLOSED] Grid Panel : Column width (Auto width)
    By legaldiscovery in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 24, 2011, 8:31 PM
  3. How to define width in percentage
    By ACustodio in forum 1.x Help
    Replies: 3
    Last Post: Jul 29, 2011, 9:02 PM
  4. Replies: 1
    Last Post: Oct 10, 2008, 8:38 PM
  5. Grid Panel Columns width in percentage
    By Rod in forum 1.x Help
    Replies: 0
    Last Post: Oct 03, 2008, 5:31 AM

Posting Permissions