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

Display and Edit images from Radgrid

3 Answers 132 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 27 Oct 2010, 09:47 PM
I am using GridImageColumn to display images in Radgrid since all images are located on the server. However, I am not able to create Editor for such column to let user to upload their images. I know GridBinaryImageColumn can do that. However, the images are not store as binary in the database. Please Help!

3 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 28 Oct 2010, 11:49 AM
Hello Jason,

Indeed the GridImageColumn do not have associated editor because it serves presentation purpose only.

If you would like to display editor for that field (RadUpload or MS TextBox to change the path/url to the image for example), consider using built-in GridTemplateColumn with asp Image in its ItemTemplate and upload/textbox inside its edit template.

Best regards,
Sebastian
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jason
Top achievements
Rank 1
answered on 28 Oct 2010, 09:44 PM
Thanks for your help. Another related problem I am facing is that when I click edit, the edit form shows up. without click cancel, I click another set of data, the edit form still shows up in different set of rows. Is there a way to automatically cancel the edit form when I click different set of data. Any suggestions? Thanks!
0
Sebastian
Telerik team
answered on 03 Nov 2010, 12:43 PM
Hi Jason,

Simply set the AllowMultiRowEdit property of the grid to false - thus you will have only a single row in edit mode at a given time.

Additionally, how to switch between the edit/insert modes you can see from this topic in the help.

Greetings,
Sebastian
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Jason
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Jason
Top achievements
Rank 1
Share this question
or