1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    27
    Vote Rating
    1
    SLerman is on a distinguished road

      0  

    Default Problem with column width with multiple grids on a page

    Problem with column width with multiple grids on a page


    I have multiple grids inside tabs (YUI's TabView), and they work almost perfectly. However, when switching between the tabs, the widths of the columns tend to overwrite each other. It looks like this is caused by both grids using the same CSS classes. My current hackish solution is to have an event handler that fires when the active tab changes to call column_model.fireEvent('widthchange'), which resets the CSS classes to have the currently visible grid's widths. Is there a better fix for this and/or is this an issue that's resolved in version 1.0?

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    4
    tryanDLS is on a distinguished road

      0  

    Default


    Refer to the FAQ - this is the number one issue for .33 grids. http://www.yui-ext.com/manual/doku.php

  3. #3
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,496
    Vote Rating
    44
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    It's fixed in 1.0.

    The 1.0 Grid code is different to 0.33, so you should begin to refactor to use 1.0 as soon as possible.

  4. #4
    Ext User
    Join Date
    Mar 2007
    Posts
    27
    Vote Rating
    1
    SLerman is on a distinguished road

      0  

    Default


    Definitely should have figured out that fix in the FAQ on my own. Good to know that it's fixed for 1.0 though. Hopefully 1.0 will be final soon enough for me to fit an upgrade into my schedule.

    And by the way, the forum thread linked to in that particular FAQ doesn't seem to have anything to do with multiple grids. Dunno if it's anything anyone cares to fix.

Similar Threads

  1. Column width messed up when I have 2 grids together
    By universe in forum Ext 1.x: Bugs
    Replies: 8
    Last Post: 2 Mar 2007, 11:59 AM
  2. Column width problem when multiple grid on same page
    By Greeens in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 9 Feb 2007, 7:44 AM
  3. Multiple Grids on a Page, Column Adjust Problem?
    By rooster in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 8 Jan 2007, 1:42 PM
  4. multiple grids -- Column width cross-talk
    By christocracy in forum Ext 1.x: Help & Discussion
    Replies: 10
    Last Post: 16 Dec 2006, 6:40 AM
  5. Multiple Grids share the same column size
    By kjordan2001 in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 7 Nov 2006, 2:54 PM

Thread Participants: 2