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

Close image editor

1 Answer 69 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 27 Sep 2011, 09:20 PM
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?
}

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 30 Sep 2011, 04:16 PM
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,
Pero
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
Tags
ImageEditor
Asked by
Mark
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or