This is a migrated thread and some comments may be shown as answers.

Set the item can not drag out of diagram

2 Answers 7 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
rui
Top achievements
Rank 1
rui asked on 26 Nov 2015, 06:59 AM
Is any method to set item can not drag out of diagram

2 Answers, 1 is accepted

Sort by
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
0
rui
Top achievements
Rank 1
answered on 30 Nov 2015, 01:53 AM

Hi Martin,

I am sorry my description is not clear

you understood right and the resolution is useful

Thank you very much!

Tags
Diagram
Asked by
rui
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
rui
Top achievements
Rank 1
Share this question
or