开发者

How to set grid height row in extjs

开发者 https://www.devze.com 2023-04-12 08:39 出处:网络
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;}

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 n开发者_Python百科eed to set the height row of one of those grids.


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;} 


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

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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号