Display and Edit images from Radgrid

Thread is closed for posting
4 posts, 0 answers
  1. Jason
    Jason avatar
    2 posts
    Member since:
    Oct 2010

    Posted 27 Oct 2010 Link to this post

    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!
  2. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 28 Oct 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jason
    Jason avatar
    2 posts
    Member since:
    Oct 2010

    Posted 28 Oct 2010 Link to this post

    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!
  5. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 03 Nov 2010 Link to this post

    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
Back to Top