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

Scrolling diagram programmatically

Thread ID:





77506 Nov 4,2008 12:26 PM UTC Feb 17,2011 07:07 AM UTC ASP.NET Web Forms (Classic) 3
Tags: DiagramWebControl
Asked On November 4, 2008 12:26 PM UTC


Is there a way to control scroll position in the diagram? To put in simpler words, consider this scenario: I need to implement search in the diagram - for this purpose search panel is displayed outside the diagram area. User enters text to search and system performs search within all diagram nodes. In case system found respective node, the diagram should be adjusted (note that the diagram contains over 100 nodes) so that the searched node will be displayed at the center of diagram. By using scroll user is able to browse all linked to the searched nodes. I guess it can be accomplished by changing scrollbars positions. Could you provide me with explanation of how to achieve this? I will be very grateful

Thanks a lot,

Administrator [Syncfusion]
Replied On November 12, 2008 09:28 AM UTC

Hi Bork,

You must be glad that your query is resolved now.

Please follow this link: http://websamples.syncfusion.com/samples/Diagram.Windows/f77506/main.htm

My sample provided here demonstrates the desired functional behavior of making a search on the nodes with their "name".

When a node is found, the view is automatically scrolled to position the respective node to selection and center to the diagram.

I am sure this will help resolve your query. However, update me if you need any further clarifications in this regard, Thanks!

- Ajeet

Administrator [Syncfusion]
Replied On February 8, 2011 01:42 PM UTC

..that link seems to be invalid...

Bala Murugan A.S [Syncfusion]
Replied On February 17, 2011 07:07 AM UTC

Hi Bork,

Thanks for your patience.

Sorry for the inconvenience caused.

We have created a simple sample to achieve your requirements and the same can be downloaded from the below link.
Search Node-1652128731.zip

Kindly try the above sample and let me know your concerns.

Bala Murugan A.S


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