开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜