ExtJS 4 - How to add background colors to columns of a grid?
问题 I have a grid in which I need to provide different background colors to various columns. These column colors should also not be overwritten by the mouse-over color. I have tried using cls and tdCls but no luck. Could anyone guide at how this could be achieved? Thanks in advance. 回答1: NetEmp is right here, you want a renderer and you want to use the direct 'style' method or I did it below using the following: function greyRenderer(lpValue, opMeta, opData) { if (opData.data["Condition"] == 0) {