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. Image for the cookie policy date

How to programmatically scroll to the top of the diagram


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?



1 Reply

SG Shyam G Syncfusion Team 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

Live Chat Icon For mobile
Up arrow icon