Pre select image file from database

3 posts, 0 answers
  1. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 26 Jul 2012 Link to this post

    When you select an image for upload the control changes its view to show a remove link and the image file.

    Is it posible to preload this image from tha value shown in the database.

    The idea would be that this image is persisted in the update statement for the record. If you no long want the image it can be removed and either e new one is selected or an "" is sent back to the database.
    Andy
  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 30 Jul 2012 Link to this post

    Hello Andy,

    Unfortunately it is not possible to prepopulate the async upload with files. RadAsyncUpload can only manipulate files uploaded during the current session, whereas you are looking for something like file explorer. I suggest that you take a look at the file explorer demos, perhaps you can achieve what you want using a custom provider for it.


    Kind regards,
    Genady Sergeev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 30 Jul 2012 Link to this post

    Thanks Genady

    I came to the same conclusion.

    Attached file is my solution - a bit of a cheat, I used a placeholder with an image and a button to replicate the look and feel of your control, and simply swap it out when there is data in the field.

    Andy
Back to Top