We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to programmatically scroll to the top of the diagram

Thread ID:





118374 Mar 3,2015 08:04 PM UTC Mar 4,2015 04:32 PM UTC ASP.NET Web Forms 1
Tags: Diagram
Jim Jacobs
Asked On March 3, 2015 08:04 PM UTC


I have a toolbar button that does a fitToPage("width", "page"...) but I would also like it to scroll the diagram to the top.

How do I accomplish this?



Shyam G [Syncfusion]
Replied On March 4, 2015 04:32 PM UTC

Hi Jim

Thanks for using Syncfusion products.

Please note that you have passed an incorrect parameter to the “fitToPage” method. We suggest you to set   diagram.fitToPage("page", "content")” in order to achieve your requirement. Please refer the drafted version of our documentation from the below link.

Documentation: http://www.syncfusion.com/downloads/support/directtrac/general/fittopagedocumentation-1274736532.zip

Please let me know if any concerns.


Shyam G


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon