ImageGallery to ImageEditor

2 posts, 0 answers
  1. Doug
    Doug avatar
    1 posts
    Member since:
    Sep 2015

    Posted 14 Sep 2015 Link to this post


    I am attempting to load an image in an ImageGallery to an ImageEditor. What I am doing to get the path of the image from the gallery to the editor is -

    $(function () {
      $('#ctl00_cphPopupContent_RadImageGallery1_ImageArea').click(function () {
            if ($('#imageEditor').hasClass('hideDisplay')) {
                imageToEdit = $('img').attr('src');
          else {

    As you can see I am loading it into the editor through an ajax request - 

    protected void RadAjaxManager_AjaxRequest(object sender, AjaxRequestEventArgs e)
        RadImageEditor1.ImageUrl = e.Argument;

    It works fine. I can make edits to the image but when it comes time to save it on the server I get this client side error - 

    Unhandled exception at line 6, column 50445 in 
    Version=, Culture=neutral, 

    0x800a139e - JavaScript runtime error: Sys.ArgumentException: Cannot deserialize empty string.

    Parameter name: data

    I do have the handlers in place in the Web.config file

    And it never reaches the method below - 

    protected void RadImageEditor1_ImageSaving(object sender, ImageEditorSavingEventArgs e)
        //Save the image to a custom location
        string fullPath = originalFileLocation + @"\" + JobNo;
        string fileName = e.FileName;
        fullPath = Path.Combine(fullPath, fileName);
        Telerik.Web.UI.ImageEditor.EditableImage img = e.Image;
        e.Cancel = true;

    Any help would be appreciated. 

    Thank you

  2. Vessy
    Vessy avatar
    2214 posts

    Posted 17 Sep 2015 Link to this post

    Hi Dough,

    The most probable reason for the experienced error is that a big image is edited (respectively saved) in RadImageEditor. This scenario and the way to work around it is explain in details in the following help article, so I would advice that you try the configurations given in it: Saving Large Images

    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 Feedback Portal and vote to affect the priority of the items
Back to Top