|
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
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
|
|
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
|
|
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!
|
|
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 ?
|
|
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
|
|