View Full Version : renderer in grid metadata.attr

20 Feb 2009, 10:12 AM
Dynamically for a Status trying to add
metadata.attr = ' class="class1 class2"';

as per the value in the renderer in Grid.

The class1 and class2 both show Image that comes from background-image.

The class2 image is a link.

Can get this to work with direct HTML in renderer function, but what if I want to use metadata.attr.

Tried metadata.css but that is on the DIV, the metadata.attr would be more appropriate.

Also, if metadata.css used can display class1 image but not class2 image.

The cell is dynamic and not same throughout the grid. That can be easily checked with the value passed in.


20 Feb 2009, 3:17 PM
both show Image that comes from background-image.

Are width and height set in the css classes?

25 Feb 2009, 10:21 PM
I'm sorry, my question had nothing to do with the problem..
Here's an explanation (http://extjs.com/forum/showthread.php?t=57051) about rendering and metaData.
In your case: metadata.css = 'class1 class2';