开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜