Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    May 2009
    Posts
    18
    Vote Rating
    0
    Andreas B. is on a distinguished road

      0  

    Default [OPEN-1407]GridPanel w/ CheckboxSelectionModel can hide all columns (except checkbox)

    [OPEN-1407]GridPanel w/ CheckboxSelectionModel can hide all columns (except checkbox)


    Ext version tested:
    • Ext 3.2 rev 1

    Adapter used:
    • ext

    css used:
    • only default ext-all.css



    Browser versions tested against:
    • FF3 (firebug 1.3.0.10 installed)

    Operating System:
    • Windows Vista Business

    Description:
    • When using a GridPanel with CheckboxSelectionModel (so checkboxes a are shown in the first column of the grid) it is possible to hide all columns except the checkbox column. Now it gets worse because the checkbox column has no column header and so it is not possible to show a column again, except a page reload. If you use StateManagement then you are really lost because then there is no way, except clearing the state, to show the columns again.
      I think its a bug because a GridPanel without CheckboxSelectionModel does not allow to hide the last visible column

    Test Case:

    Code:
        Just use a simple GridPanel with a CheckboxSelectionModel

    Steps to reproduce the problem:
    • Remove all columns of the GridPanel by using the header menu
    • After removing the last one, there is only the checkbox column left.

    The result that was expected:
    • The GridPanel should check if there is at least one column with a header menu left. Otherwise hiding should not be possible.

    The result that occurs instead:
    • All columns, except the checkbox column, can be hidden. Now there is no way to show the columns again.

    Screenshot or Video:
    • no

    Debugging already done:
    • no

    Possible fix:
    • not provided

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    95
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Can't you just configure the CheckboxSelectionModel with menuDisabled:false?

  3. #3
    Ext JS Premium Member
    Join Date
    May 2009
    Posts
    18
    Vote Rating
    0
    Andreas B. is on a distinguished road

      0  

    Default


    Okay thats a working solution for us. I also have to set groupable: false to the CheckboxSelectionModel, otherwise the "grouping" checkbox in the menu could be clicked.

    But it's still a bug I think. Or if not it should be documented that these config properties can be set on CheckboxSelectionModel. There are no config properties "menuDisabled" and "groupable" in the API docs of CheckboxSelectionModel.

  4. #4
    Ext JS Premium Member
    Join Date
    May 2009
    Posts
    18
    Vote Rating
    0
    Andreas B. is on a distinguished road

      0  

    Default


    Why is this bug closed now?

  5. #5
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    18
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    We're going to update the documentation.

  6. #6
    Ext JS Premium Member
    Join Date
    May 2009
    Posts
    18
    Vote Rating
    0
    Andreas B. is on a distinguished road

      0  

    Default


    The documentation has not been updated until now! Even not with ExtJs 3.3.0!

  7. #7
    Ext JS Premium Member
    Join Date
    May 2009
    Posts
    18
    Vote Rating
    0
    Andreas B. is on a distinguished road

      0  

    Default


    It's still undocumented. Please reopen the bug report.

Similar Threads

  1. Replies: 1
    Last Post: 19 Jan 2010, 10:59 PM
  2. GridPanel performance on show/hide columns
    By v.madhu in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 16 Nov 2009, 12:26 AM
  3. is a css problem? in grid columns sometimes i haven't checkbox hide/visible
    By nunziofiore in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 4 Apr 2008, 7:09 AM

Thread Participants: 2