Add color to column property grid
Hey,
I am struggling with this problem for a while now. I have a property grid, and I would like to give the 1st column a background color.
The API Docs say that I can place a renderer on a column by retrieving it's columnmodel. But when I try to do that it doesn't work. Here is my code:
Code:
pgrid.getColumnModel().setRenderer(0, function(value, metadata, record, row, col, store){
metadata.attr = 'style="background-color:#FF00FF;"';
return value;
});
When I try to use the above method on an EditorGridPanel, it does work. It seems that I can't place a renderer on a column in a property grid. Is there a way to give the 1st column in the property grid a background-color ?