How to programmatically scroll to the top of the diagram

Hi,

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?

Thanks

Jim

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.

Regards,

Shyam G



Loader.
Up arrow icon