Yvan Owona
Yvan Owona

Reputation: 1

How to set grid height row in extjs

In my code I'm using four grids, I've set the row height in css like this: .x-grid3-row td {line-height: 50px;} and it sets the rows of all my grids. So I need to set the height row of one of those grids.

Upvotes: 0

Views: 9117

Answers (2)

Keylan
Keylan

Reputation: 325

Late answer, but another option is to use getRowClass on your viewConfig:

viewConfig: {
    getRowClass: function (record, rowIndex, rp, store) {
        rp.tstyle += 'height: 50px;';
    }
}

Upvotes: 1

Kiran
Kiran

Reputation: 20293

Based on id or cls class you can specify the CSS for eaxch component individually. For example,if you have grid with id sample then code will be:

.sample .x-grid3-row td {line-height: 50px;} 

Upvotes: 2

Related Questions