This is a migrated thread and some comments may be shown as answers.

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

2 Answers 53 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Ignatiuz
Top achievements
Rank 1
Ignatiuz asked on 19 Jun 2015, 11:15 AM
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 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 19 Jun 2015, 01:05 PM
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
0
Ignatiuz
Top achievements
Rank 1
answered on 22 Jun 2015, 06:13 AM

Hi Vessy,

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

Tags
ImageEditor
Asked by
Ignatiuz
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Ignatiuz
Top achievements
Rank 1
Share this question
or