1. #1
    Ext JS Premium Member
    Join Date
    Mar 2010
    Location
    Northern Virginia
    Posts
    59
    Vote Rating
    4
    aghextjs is on a distinguished road

      0  

    Default Anything like forceFit for the gridPanel?

    Anything like forceFit for the gridPanel?


    I have a gridpanel in the center portion of a border layout, in a Viewport. I want the columns of the grid panel to fill the entire width of the page. Previously, I used forceFit, but I can't find this option anymore. Is there an Ext JS 4 equivalent or do I just need to wait for another release?

    thanks,
    Annie

  2. #2
    Sencha User
    Join Date
    Apr 2011
    Location
    Northern Virginia
    Posts
    15
    Vote Rating
    0
    trebor is on a distinguished road

      0  

    Default


    Try the "flex" column config. It takes an int and sets the columns relative to the sum total of all flex columns. So if you have columns a, b, and c set to flex 1, 2, and 3 - then:

    - c will be sized to half the width of the grid (3/6)
    - b will be sized to a third the width of the grid (2/6)
    - and a the remainder (1/6)

  3. #3
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,679
    Vote Rating
    112
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      0  

    Default


    hi Annie,

    just wrote the same answer for jay in the bugs-forum

    i had the same problem with forceFit. after looking deeper into the api docs and sources, i realized that this config is no longer a config of the GridView, but of Ext.grid.Panel (to be more precise: Ext.panel.Table).


    best regards
    tobiu
    Best regards
    Tobias Uhlig
    __________

    S-CIRCLES Social Network Engine

Similar Threads

  1. Problems in IE with GridPanel and forceFit
    By melfice in forum Ext 2.x: Help & Discussion
    Replies: 10
    Last Post: 24 Sep 2008, 1:58 AM
  2. GridPanel with forceFit sizes columns incorrectly
    By oboyklubben in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 17 Sep 2008, 10:53 PM
  3. GridPanel forceFit issues on Safari
    By wsmith323 in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 11 Apr 2008, 1:56 PM
  4. GridPanel forceFit does not work inside FormPanel
    By mabello in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 9 Apr 2008, 3:23 PM

Thread Participants: 2

Tags for this Thread