You found a bug! We've classified it as EXTJS-6597 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    975
    Vote Rating
    110
    Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all

      1  

    Default [4.1.1 rc2] Columns Group with non hidable column

    [4.1.1 rc2] Columns Group with non hidable column


    REQUIRED INFORMATION

    Ext version tested:
    • Ext 4.1.1 rc2
    Browser versions tested against:
    • Any
    Description:
    • Frankly, I am not sure it's a bug or by design. Anyways, you will do a best judgement. I set up a non hideable column with the columns group. I would expect this non hidable column always appears when its parent group column appears. Though there is a scenario to get the group column shown, but its child non hideable column hidden. Please follow the steps to reproduce the issue.
    Steps to reproduce the problem:
    • Run the code sample
    • Go to the header Columns menu and uncheck "Group"
    • Then check the "Test2" or "Test3"
    The result that was expected:
    • I would expect the non hidable "Test1" column appear as well.
    The result that occurs instead:
    • The "Test1" column doesn't appear.
    Test Case:

    Code:
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Group Columns Hidable Issue</title>
    
        <link type="text/css" rel="stylesheet" href="../resources/css/ext-all.css" />
        
        <script type="text/javascript" src="../ext-all.js"></script>
    
        <script type="text/javascript">
            Ext.onReady(function () {
                Ext.create("Ext.grid.Panel", {
                    store: {
                        fields: [{
                            name: "test1"
                        }, {
                            name: "test2"
                        }, {
                            name: "test3"
                        }]
                    },
                    id: "GridPanel1",
                    renderTo: Ext.getBody(),
                    columns: {
                        items: [{
                            columns: [{
                                dataIndex: "test1",
                                hideable: false,
                                text: "Test1"
                            }, {
                                dataIndex: "test2",
                                text: "Test2"
                            }, {
                                dataIndex: "test3",
                                text: "Test3"
                            }],
                            text: "Group"
                        }, {
                            width: 200,
                            text: "Just to allow to hide the Group column"
                        }]
                    }
                });
            });
        </script>
    </head>
    <body>
    
    </body>
    </html>


    HELPFUL INFORMATION

    Possible fix:
    • It is easy to implement the behavior that I need. Just set up a show listener for the Group column where forcibly show the Test1 column. But the reason I have posted the thread is ensuring it's a bug or by design.

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,005
    Vote Rating
    650
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Interesting scenario. I guess the "Group" should never be hideable, because one of the children can't be hidden.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha User
    Join Date
    Dec 2011
    Location
    Washington DC
    Posts
    7
    Vote Rating
    0
    wolcott is on a distinguished road

      0  

    Default


    I think the group should still be hideable unless you explicitly add hideable="false" to the group header. What the above example should mean is that if the group is displayed then the column that is not hideable should always be shown.

  4. #4
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    975
    Vote Rating
    110
    Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all

      0  

    Default


    Hello,

    Any update regarding this issue?

Thread Participants: 2