Results 1 to 2 of 2

Thread: group header column showing when all sub-columns are hidden

    You found a bug! We've classified it as EXTJS-10955 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member
    Join Date
    May 2012
    Posts
    15

    Default group header column showing when all sub-columns are hidden

    Not sure if this is a bug in 4.1.3 or a bug in 4.2.1. The behavior is different.

    In 4.1.3, "Column 2" (whose sub columns are all hidden) is not shown in the grid.
    In 4.2.1, "Column 2" is shown in the grid - and cells are shifted

    Code:
    Ext.create('Ext.data.Store', {
        storeId:'simpsonsStore',
        fields:['name', 'email', 'phone'],
        data:{'items':[
            { 'name': 'Lisa',  "email":"[email protected]",  "phone":"555-111-1224"  },
            { 'name': 'Bart',  "email":"[email protected]",  "phone":"555-222-1234" },
            { 'name': 'Homer', "email":"[email protected]",  "phone":"555-222-1244"  },
            { 'name': 'Marge', "email":"[email protected]", "phone":"555-222-1254"  }
        ]},
        proxy: {
            type: 'memory',
            reader: {
                type: 'json',
                root: 'items'
            }
        }
    });
    
    
    Ext.create('Ext.grid.Panel', {
        title: 'Simpsons',
        store: Ext.data.StoreManager.lookup('simpsonsStore'),
        columns: [ {
                text: 'column 1',
                columns:[ 
                    { text: 'Name',  dataIndex: 'name'},
                    { text: 'Email', dataIndex: 'email', flex: 1 },
                    { text: 'Phone', dataIndex: 'phone' }
                 ]
    
    
            },
     { 
                text:'column 2',
                columns:[ 
                    { text: 'Name',  dataIndex: 'name', hidden: true },
                    { text: 'Email', dataIndex: 'email', flex: 1,hidden: true },
                    { text: 'Phone', dataIndex: 'phone' ,hidden: true}
                 ]
            } ,
         {
                text: 'column 3',
                columns:[ 
                    { text: 'Name',  dataIndex: 'name'},
                    { text: 'Email', dataIndex: 'email', flex: 1 },
                    { text: 'Phone', dataIndex: 'phone' }
                 ]
    
    
            }],
        height: 200,
        width: 400,
        renderTo: Ext.getBody()
    });
    Last edited by evant; 18 Aug 2013 at 4:18 PM. Reason: Please use [code][/code] tags

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •