1. #1
    Sencha User
    Join Date
    Mar 2011
    Location
    Wisconsin
    Posts
    23
    Vote Rating
    0
    MCSchlemme is on a distinguished road

      0  

    Default Unanswered: Column hide problem

    Unanswered: Column hide problem


    I'm using EXT 4.0.7.

    I have 1 column (ColumnZ) on my grid that is set initially to hide: true.

    When I go through the code in debug, the column's config for hide = true.

    Now I use the column header menu to check (unhide) ColumnZ.

    In debug, ColumnZ's hide config still stays true.

    Doesn't a columns config get updated?

    Thanks...

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    2,194
    Vote Rating
    58
    Answers
    164
    slemmon is just really nice slemmon is just really nice slemmon is just really nice slemmon is just really nice

      0  

    Default


    Look for hidden: true - or use column's isHidden() method.

  3. #3
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,331
    Vote Rating
    76
    Answers
    124
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi,

    try following code:

    Code:
    Ext.create('Ext.data.Store', {
        storeId:'simpsonsStore',
        fields:['name', 'email', 'phone'],
        data:{'items':[
            { 'name': 'Lisa',  "email":"lisa@simpsons.com",  "phone":"555-111-1224"  },
            { 'name': 'Bart',  "email":"bart@simpsons.com",  "phone":"555-222-1234" },
            { 'name': 'Homer', "email":"home@simpsons.com",  "phone":"555-222-1244"  },
            { 'name': 'Marge', "email":"marge@simpsons.com", "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: [
            { header: 'Name',  dataIndex: 'name' },
            { header: 'Email', dataIndex: 'email', flex: 1 },
            { header: 'Phone', dataIndex: 'phone',hidden:true }
        ],
        height: 200,
        width: 400,
        renderTo: Ext.getBody()
    });
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  4. #4
    Sencha User
    Join Date
    Mar 2011
    Location
    Wisconsin
    Posts
    23
    Vote Rating
    0
    MCSchlemme is on a distinguished road

      0  

    Default A

    A


    Got it, thanks.