Joe
Joe

Reputation: 610

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 ?

Upvotes: 0

Views: 325

Answers (1)

Bobik Sdoh
Bobik Sdoh

Reputation: 110

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

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

Upvotes: 1

Related Questions