I am using a custom RadImageEditor control with a version of 2013.1.220.40. The control is placed on a page and displayed in a RadWindow. My goal is to either pass a URL or not pass it (for Update and Add scenarios, respectively). After cropping the image in the popup, when the user clicks on the save button in the Image Editor, I want to send the path back to the page by adding a response script to the Ajax Manager. Everything seems to be working fine, but the response script is not working. I attempted to use a hidden field to save the value in the onSaving event and then capture the onClientSaved event of the Image Editor, but the value of the hidden field always returns empty. It appears that all the values reset after leaving the onSaving event, even though the image is saved successfully in the directory. I am unsure of what I am missing that is causing this error. Please assist me!
Here is the server-side code:
public void RadImageEditor1_ImageSaving(object sender, Telerik.Web.UI.ImageEditorSavingEventArgs e)
{
// This is the image saving logic
}
// Other methods and events follow...
And here is the markup with JavaScript:
// Here is the JavaScript code