开发者

How to add class to a cell depending on the value of another cell in ext js grid

开发者 https://www.devze.com 2023-04-05 14:07 出处:网络
This is what i want to try , i want to highlight a cell according to the value of another column in the same row. I know that the renderer function can style the column on render, but is it possible t

This is what i want to try , i want to highlight a cell according to the value of another column in the same row. I know that the renderer function can style the column on render, but is it possible to access anot开发者_如何转开发her column ?


Renderer has set of parameters. The third parameter is record.

renderer: function(value, metaData, record){
    var anotherColumnValue = record.get('anotherColumnDataIndex');
    // ...
}
0

精彩评论

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