Is any method to set item can not drag out of diagram
2 Answers, 1 is accepted
0
Martin Ivanov
Telerik team
answered on 27 Nov 2015, 09:20 AM
Hi rui,
If I understand you correctly you want to prevent dragging outside of the diagram's viewport (the visible render surface). Am I right? If so, you can take a look at the CustomServices SDK example which demonstrates how you can restrict the dragging to specified bounds. Basically, you can create a custom dragging service and override its drag events.
I hope this helps.
Regards,
Martin
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items