PDA

View Full Version : Grid with images in cells



gregsimons
14 Jun 2007, 6:44 AM
I have a grid that i want to put images in some of the cells. I am using basic html <img> tags and this works fine in firefox. However, in IE the image doesnt display at all. The <img> is also in an <A> tag for a link.

Has any one else suffered this problem and found a solution.

Thanks

tryanDLS
14 Jun 2007, 6:53 AM
You'll have to post some code - you may have some other problem. There are numerous examples of doing this with a custom renderer that work in FF and IE.

gregsimons
14 Jun 2007, 7:00 AM
Im doing this by converting standard html to a grid using the from-markup.js example
- so its really just

<td>
<img src="" />
</td>

tryanDLS
14 Jun 2007, 7:47 AM
You may have to add a width/height to image for IE (or maybe on the TD)

gregsimons
14 Jun 2007, 10:58 PM
I found the problem seems to be with png images....

Ive tried using GIF's etc and they render correctly. I know IE has the problem with PNG transparency but I cant see why they dont render at all. Any ideas?