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.
Unfortunately, activation email could not send to your email. Please try again.

Updating Scroll position when dragging node

Thread ID:

Created:

Updated:

Platform:

Replies:

131034 Jun 16,2017 10:08 PM Jun 20,2017 12:45 AM Windows Forms 3
loading
Tags: Diagram
Mark Atkinson
Asked On June 16, 2017 10:08 PM

When dragging an object/node in a diagram, I noticed that the scroll position doesn't update when I drag the node close to (or beyond) the edge of the diagram.

What I seem to have to do is stop dragging, scroll or pan the diagram in place, then select and continue dragging the object to where I want it to be.

Is there a way to allow the diagram X/Y position to update as a node gets dragged beyond the visible rectangle of the diagram?

Thanks,
Mark

Naganathan Ganesh Babu [Syncfusion]
Replied On June 19, 2017 01:12 AM

Hi Mark, 
  
Thanks for contacting Syncfusion support. 
  
If your intention is to make the scrollbars scroll automatically as the node/object moves out of the viewable area, then kindly set the following property  
  
//Scrolls both Horizontal and Vertical ScrollBars automatically when mouse moves out of the Viewable area 
this.diagram1.Autoscrolling = ScrollBars.Both; 
  
The AutoScrolling property is used to specify the direction for automatic scrolling when the user drags the mouse cursor out of the scrolling area. 
  
Regards, 
  
Naganathan K G 


Mark Atkinson
Replied On June 19, 2017 11:39 PM

Thanks Naganathan,
That is working for me. 

If you want to close this support request, go ahead.

Naganathan Ganesh Babu [Syncfusion]
Replied On June 20, 2017 12:45 AM

Hi Mark,

Thanks for your update.
 

We are happy to hear that your problem is resolved. Please let us know if you need any further assistance.

Regards,
 

Naganathan K G
 


CONFIRMATION

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.

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.

;