Save button outside of RadImageEditor

2 posts, 0 answers
  1. Leo
    Leo avatar
    6 posts
    Member since:
    Jun 2013

    Posted 25 Jul 2013 Link to this post

    Hi there,

    I'm considering adding a Save RadButton outside of the ImageEditor box which perform the same functionality as the Save tool in ImageEditor. Here's my code:

    Public Sub SaveRB_Click(ByVal sender As Object, ByVal args As EventArgs) Handles SaveRB.Click
        Dim RadImageEditor1 As RadImageEditor = DirectCast(MiscUtils.FindControlRecursively(Me.Page, "RadImageEditor1"), RadImageEditor)
        RadImageEditor1.SaveImageOnServer("", true)

    However, it seemed that the property "CanvasMode" was blocking this functionality. When I set CanvasMode="False", it worked; otherwise it didn't. Is there any workaround so that I can have both the Save RadButton and CanvasMode's tools? Thank you!


  2. Vessy
    Vessy avatar
    1354 posts

    Posted 30 Jul 2013 Link to this post

    Hello Long,

    The reason for the experienced behavior is that when the ImageEditor is used in CanvasMode, all changes made to the edited image are kept on the Client. That is to say if you want to save the image on the server, you have to go through the Client-side saveImageOnServer() method (in this mode the equivalent server method do not do anything).

    More information on the subject and a live implementation of the described approach is available in this online demo: Save Image to a Custom Location

    I hope this helps.

    Veselina Raykova
    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 the blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top