Hybrid View

  1. #1
    Sencha Premium Member seek's Avatar
    Join Date
    Sep 2008
    Location
    Italy
    Posts
    112
    Vote Rating
    1
    seek is on a distinguished road

      0  

    Default Header height of Ext.grid.GridPanel

    Header height of Ext.grid.GridPanel


    Hi all, how to get the height of header of a Ext.grid.GridPanel?

    Thanks all
    S.

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    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 try css

    try css


    Hi

    try this

    Code:
    ....
    colModel: new Ext.grid.ColumnModel({
    columns: [
    { header: 'header1' css: 'height:20px' }
    ] ....
    Regards
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha Premium Member seek's Avatar
    Join Date
    Sep 2008
    Location
    Italy
    Posts
    112
    Vote Rating
    1
    seek is on a distinguished road

      0  

    Default


    Thanks, but I need a method (or trick) to read that value.
    S.

  4. #4
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    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,

    You can reach the header element from the view (instance of GridView) object of the grid like:

    Header element refers to mainHd (Ext.Element)

    this.view.mainHd.getHeight()



    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Thread Participants: 1

Tags for this Thread