image editor: set default pan(right upper corner of image) on page load

3 posts, 0 answers
  1. Ignatiuz
    Ignatiuz avatar
    7 posts
    Member since:
    May 2010

    Posted 19 Jun 2015 Link to this post

    I am using telerik image editor. I want to set default pan(right upper corner of image) on page load.
    I have attached one image. Please find attachment: img.png
    I want pan only highlighted in yellow on page load and it should not affect zoom in and zoom out functionality. 

    So please let me know the any solution.
  2. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 19 Jun 2015 Link to this post

    Hi Ignatiuz,

    A possible way to achieve the desired scenario is to scroll the ImageEditor's viewport in a similar way:
    <telerik:RadImageEditor ID="RadImageEditor1" runat="server" ImageUrl="~/images/Hometown-Associates.jpg" OnClientImageLoad="panImage">
    </telerik:RadImageEditor>
    <script>
        function panImage(imageEditor, args) {
            var x = imageEditor.getEditableImage().get_width();
            var y = 0;
            imageEditor.get_viewport().scrollTo(x, y)
        }
    </script>

    I hope this helps.

    Regards,
    Vessy
    Telerik
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ignatiuz
    Ignatiuz avatar
    7 posts
    Member since:
    May 2010

    Posted 22 Jun 2015 in reply to Vessy Link to this post

    Hi Vessy,

    Thank for your reply. Your solution is very close to our requirement. 

Back to Top