Welcome Guest Search | Active Topics | Sign In | Register

Grid Cell Image Options
Mirage
Posted: Friday, July 20, 2012 5:12:22 PM
Rank: Member
Groups: Member

Joined: 10/20/2011
Posts: 12


Using the grid,
How do you add a data column that display a different image in each cell ?

Trying to display a different picture in the first cell of each row

Thx
eo_support
Posted: Friday, July 20, 2012 5:18:53 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Mirage
Posted: Friday, July 20, 2012 7:14:50 PM
Rank: Member
Groups: Member

Joined: 10/20/2011
Posts: 12
Thanks for the quick response.

I made the changes and now I get the empty picture box with red crosses in each cell.

I tried everything for the src value: "~/Image/test.jpg" and "~/bin/Image/tets.jpg"

non of them worked ?

any suggestion is appriciated
eo_support
Posted: Friday, July 20, 2012 7:25:03 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

I don't think DataFormat support "~". The cell HTMLs are formatted on the client side, not on the server side, so it does not support server side relative path syntax. You can just replace {0} with your path and put the result in your HTML source, if that works, then it should work in the Grid cell.

Thanks!
Mirage
Posted: Friday, July 20, 2012 7:32:56 PM
Rank: Member
Groups: Member

Joined: 10/20/2011
Posts: 12

I did not set the DataFormat and set the value of the cell to "<image src=""~/bin/Image/test.jpg""/>"

still no success.

The image is on the server side.
What am I missing ?
eo_support
Posted: Friday, July 20, 2012 7:39:43 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

The point is you can not use "~", not you can't use "~" with DataFormat. Just apply the same rule ---- put whatever you give to the Grid directly in your HTML to verify whether it will work or not.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.