Success! Looks like we've fixed this one. According to our records the fix was applied for EXTGWT-3407 in 3.0.7.
  1. #1
    Touch Premium Member
    Join Date
    Mar 2008
    Location
    Morgan Hill, CA
    Posts
    133
    Vote Rating
    3
    margozzi is on a distinguished road

      0  

    Default "fixed" table columns are not included in the "Columns" header context menu

    GXT 3.0.6

    The Javadocs say that setting fixed to true on a ColumnConfig fixes the width of the column.

    HTML Code:
    public void setFixed(boolean fixed) True if the column width cannot be changed either by column model or user  resizing (defaults to false, pre-render). Parameters:fixed - true for fixed column width
    However it has the unfortunate ( and I hope unintended ) side effect of excluding it from the "Columns" column header context menu. I had to read the source code to figure out what was going on.

    Source code from GridView.java.

    Code:
    private boolean shouldNotCount(int columnIndex, boolean includeHidden) {
        return cm.getColumnHeader(columnIndex) == null || cm.getColumnHeader(columnIndex).asString().equals("")
            || (includeHidden && cm.isHidden(columnIndex)) || cm.isFixed(columnIndex);
      }
    I want a column with a fixed width, but I still want it to be hidden or not by the user via the table column header context menu. I am assuming this is a bug. Is there a work around?

  2. #2
    Touch Premium Member
    Join Date
    Mar 2008
    Location
    Morgan Hill, CA
    Posts
    133
    Vote Rating
    3
    margozzi is on a distinguished road

      0  

    Default

    Here is a screen capture in case that was confusing. Note that several of the columns are missing from the context menu.
    Attached Images

  3. #3
    Sencha - GXT Dev Team
    Join Date
    Jan 2012
    Location
    Arlington, WA
    Posts
    663
    Vote Rating
    19
    branflake2267 will become famous soon enough branflake2267 will become famous soon enough

      0  

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

    I apologize for the delay.

    Brandon

  4. #4
    Sencha - GXT Dev Team
    Join Date
    Jan 2012
    Location
    Arlington, WA
    Posts
    663
    Vote Rating
    19
    branflake2267 will become famous soon enough branflake2267 will become famous soon enough

      0  

    Default

    Just an update, GXT 3.0.7 has been released with this issue fixed in it.

    It can be downloaded:
    https://support.sencha.com/index.php#dash
    or
    http://docs.sencha.com/gxt/3.1/getti...ven/Maven.html
    Thanks,
    Brandon
    GXT Support

    ~ GXT Guides ~
    http://docs.sencha.com/gxt/3.1/

    ~ Support Tickets ~
    https://support.sencha.com/index.php

    ~ Tips and Announcements Community ~
    https://plus.google.com/communities/110447085143928405373

    ~Training~
    Get on the Fast Track with Sencha Training http://sencha.com/training

Thread Participants: 1