Issue with Image Editor

5 posts, 1 answers
  1. Chad Johnson
    Chad Johnson avatar
    54 posts
    Member since:
    Sep 2012

    Posted 24 Oct 2011 Link to this post

    Greetings,

    Currently I'm using an implementation of the RadEditor with a custom ImageManager.  It has the following custom pieces to it:

    FileBrowser.ascx
    ImageEditor.ascx
    SetImageProperties.ascx

    FileBrowser.ascx was the only real custom piece, due that we needed to hide a few options.  Recently, I was notified that the Image Editor is no longer working and the following error was spit out.
     

    Server Error in '/Community' Application.

    Object reference not set to an instance of an object.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
       Telerik.Web.UI.Editor.DialogControls.ImageEditorDialog.InitializeImageEditor() +22
       Telerik.Web.UI.Editor.DialogControls.ImageEditorDialog.OnInit(EventArgs e) +112
       System.Web.UI.Control.InitRecursive(Control namingContainer) +333
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +198
       System.Web.UI.ControlCollection.Add(Control child) +80
       Telerik.Web.UI.DialogHandlerNoSession.AddDialogControl(Control dialogControl, DialogParameters dialogParameters) +252
       Telerik.Web.UI.DialogHandlerNoSession.LoadDialogControl() +606
       Telerik.Web.UI.DialogHandlerNoSession.CreateChildControls() +245
       System.Web.UI.Control.EnsureChildControls() +87
       Telerik.Web.UI.DialogHandlerNoSession.OnPreLoad(EventArgs e) +18
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +554
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4209

    Nothing has changed in our implementation that I know of and was wondering if something changed when the newer version of the controls came out.  That is the only thing that has really changed that I know of.  Any help would be appreciated.  Thanks.

    Kindest Regards,
    Chad Johnson
  2. Answer
    Rumen
    Admin
    Rumen avatar
    14366 posts

    Posted 25 Oct 2011 Link to this post

    Hi Chad,

    Since Q2 2011 (version 2011.2.712) a new RadImageEditor control was integrated in the Image Manager of RadEditor. This means that the older external ImageEditor.ascx will not work the new versions of RadEditor. You should take the new ImageEditor.ascx dialog file from the same installation as the Telerik.Web.UI.dll and customize it from scratch.

    Kind regards,
    Rumen
    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. Chad Johnson
    Chad Johnson avatar
    54 posts
    Member since:
    Sep 2012

    Posted 26 Oct 2011 Link to this post

    That fixed the issue.  Thanks!

    I do have another question though.  The Image Manager is being used in two editors on our site which are contained within RadWindows.  Both RadWindows are the same size, as well as the editors, however each are in different areas of the site.  I noticed after the switch on the Image Editor, the size of the dialog has increased in one place, while it shrank in another.  Is there a way to control the sizing of both the Image Manager and the Image Editor so that we can have uniform sizes?  The Image Manager seems to have enlarged also by the way.  Any help on this would be appreciated.

    Kindest Regards,
    Chad Johnson
  4. Rumen
    Admin
    Rumen avatar
    14366 posts

    Posted 27 Oct 2011 Link to this post

    Hello Chad Johnson,

    You can control the size of the RadEditor's dialogs but the contents inside them have fixed size and this will not solve the issue. What you can do is to use the browser's modal dialog which will pop up outside of RadWindow and you will not experience the resizing issue. You can see how to do that in the following KB article: Using browser modal dialog instead of RadWindow.

    Best wishes,
    Rumen
    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
  5. Chad Johnson
    Chad Johnson avatar
    54 posts
    Member since:
    Sep 2012

    Posted 28 Oct 2011 Link to this post

    Thank you for your response, but I figured out the issue.  I had some server side code that was actually adjusting the size in one of the locations I mentioned before.  I added that sizing to all of the other pages and that fixed my problem.  Thank you for your help.
Back to Top