Close image editor

2 posts, 0 answers
  1. Mark
    Mark  avatar
    14 posts
    Member since:
    Aug 2007

    Posted 27 Sep 2011 Link to this post

    How can I save image editor with RadButton called save outside the image editor?
    I have this function but dont know how to actually close the image editor after save happened and make save image display on Image1.ImageUrl......

    function Save() 
             var imageEditor = $find("<%=imageeditor1.ClientID  %>");
             imageeditor1.saveImageOnServer("", true);
    ......... //what can I put here?

  2. Pero
    Pero avatar
    1156 posts

    Posted 30 Sep 2011 Link to this post

    Hi Mark ,

    Could you please explain how is the ImageEditor opened, so we can suggest a solution to close it? You could save the image on the server also, by calling the SaveEditableImage method, and then setting the setting the ImageUrl in the following way:

    Image1.ImageUrl = RadImageEditor1.ImageUrl + "?c=" + Guid.NewGuid().ToString();

    We append query string to the ImageUrl, to force the browser to request the image from the server, and not the cached image.

    Kind regards,
    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
Back to Top