Ajax DataGrid Support Product Page

Answered

How do you display an image?

12 years ago Steve Skinner posted:
I've got my datagrid working, but one of the fields in the layout is a URL of an image. In the datagrid output, how do I get that field to display as an image instead of just the URL that is stored in the database field?

Replies

Replied 12 years ago
12 years ago Vulcho Vulev replied:
Hello Steve.

If you want to display the photos in your database as images rather then a text that list the path, to do this you need to select the "images" column(The field that contains the photos in your database) and enter <img src=“images/photo/(the path to your images folder containing the images in the recordset) in the Content Before field. You need enter “ width=“80/>(Where 80 represents the width of the images in the field) in the Content After. The images tag together with the path to the images will make sure the images will be displayed while the width specifies the width of the images.

Regards:Vulcho.
Replied 12 years ago
12 years ago Steve Skinner replied:
Thanks! I didn't realize that's what the before and after fields were for.

Worked perfectly.

Reply to this topic