Welcome Guest Search | Active Topics | Sign In | Register

Images in eo:web grid Options
mike
Posted: Sunday, September 22, 2013 5:17:26 AM
Rank: Member
Groups: Member

Joined: 5/15/2012
Posts: 18
Hi

I want to display an image (picture of a product) in a grid. Can this be done and if so could you give me a sample. The grid looks like this

QTY | Image | Item Code | Description | ......
eo_support
Posted: Sunday, September 22, 2013 8:36:16 AM
Rank: Administration
Groups: Administration

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

Yes. You can do that. You can use a StaticColumn and set the column's DataFormat to be something like this:

<img src="{0}" />

At runtime, the Grid will replace "{0}" with the "Value" of that field. So if the value of the cell is an image Url, you will see an image in the cell.

Thanks!
mike
Posted: Monday, September 23, 2013 2:13:04 AM
Rank: Member
Groups: Member

Joined: 5/15/2012
Posts: 18
Thanks a mill for the quick reply and excellent support


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.