-
14 Sep 2010 4:01 AM #1
Add color to column property grid
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:
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 ?Code:pgrid.getColumnModel().setRenderer(0, function(value, metadata, record, row, col, store){ metadata.attr = 'style="background-color:#FF00FF;"'; return value; });
-
14 Sep 2010 5:22 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
Why not use a simple css rule?
Code:.x-props-grid .x-grid3-td-name { background-color: #f0f; }
Similar Threads
-
changing the grid column header color
By stmgold in forum Ext 1.x: Help & DiscussionReplies: 4Last Post: 30 Jul 2009, 9:51 AM -
dynamic change column color for grid
By zhiliang in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 21 May 2008, 1:26 AM -
[Solved]change column color of single row(grid column names row)
By amey7p in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 14 Feb 2008, 3:52 AM -
how to make add property of reload function of Store to false on column header click
By sreenija in forum Ext 1.x: Help & DiscussionReplies: 0Last Post: 8 Jan 2008, 4:40 AM -
Column color & Grid
By Xcar in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 26 Sep 2007, 12:17 AM


Reply With Quote