[英]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 another column ?
我知道renderer函数可以在render上设置列的样式,但是可以访问另一个列吗?
Renderer has set of parameters. 渲染器具有一组参数。 The third parameter is record.
第三个参数是记录。
renderer: function(value, metaData, record){
var anotherColumnValue = record.get('anotherColumnDataIndex');
// ...
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.