[CLOSED] setting the height of a grid column header

  1. #1

    [CLOSED] setting the height of a grid column header

    Hi,

    How do you set the height of the grid column header. The code below use to work. but suddenly when we got the latest version of the library. it stopped working with the error that setHeight is undefined on the column. How can I set the height of the column header


    var config = {
                xtype: "grid",
                styleHtmlContent: true,
                frame: true,
                store: store,
                stripeRows: true,
                stateful: true,
                viewConfig: {
                    stripeRows: true
                },
                listeners: {
                    beforerender: function (cmp, eOpts) {                    
                            if (cmp.columns[0].height) {
                                cmp.columns[0].setHeight(cmp.columns[0].height);
                            }                 
                       
                    }
                },
                plugins: [],
                columns: columns,
                selType: 'rowmodel'
            };
            
            var grid = Ext.create('Ext.grid.Panel', config);
            return grid;
    Last edited by Daniil; Oct 03, 2012 at 9:10 PM. Reason: [CLOSED]
  2. #2
    never mind. Found out I do not need to use the event.

Similar Threads

  1. Replies: 5
    Last Post: Sep 03, 2012, 1:38 PM
  2. Replies: 1
    Last Post: Nov 24, 2011, 6:48 AM
  3. How to rotate a grid column header?
    By AmitM in forum 1.x Help
    Replies: 11
    Last Post: Jun 08, 2011, 2:29 PM
  4. Replies: 16
    Last Post: Feb 23, 2011, 10:03 AM
  5. setting focus on nth column of nth row in a grid
    By n_s_adhikari@rediffmail.com in forum 1.x Help
    Replies: 1
    Last Post: Dec 25, 2009, 5:14 AM

Posting Permissions