This is a migrated thread and some comments may be shown as answers.

[Solved] Image from DB in MVC Grid

1 Answer 18 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kees
Top achievements
Rank 1
Kees asked on 05 Jul 2011, 10:26 AM
I'm using a MVC Grid in Server binding mode. The view gets a collection of the following DTO's:
 public class PictureDto : object
	{
  	public readonly Image Picture;
			public readonly string Name;
			public PictureDto( Image picture, string name)
			{
		Picture = picture;
					Name = name;
			}	
	}
NOTE: Image is from System.Drawing this is the model declaration in the view:
@model System.Collections.Generic.ICollection<TelerikMvcDropZone.Models.PictureDto>

How do I declare my Gird (Columns) to have the image rendered?

 

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 05 Jul 2011, 01:59 PM
Hello Kees,

 The grid does not have anything built-in which can help in this case. You can check this stackoverflow question which is probably related. You can combine that solution it with a template column.

Best wishes,
Atanas Korchev
the Telerik team
Register for the Q2 2011 What’s New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
Tags
Grid
Asked by
Kees
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or