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

Limit usable diagram area to PageSize

2 Answers 98 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Alexander
Top achievements
Rank 1
Alexander asked on 19 Sep 2014, 09:19 AM
Hello,

is there any possibility to limit the usable diagram area to the page size (specified using primitives:BackgroundPageGrid.PageSize)?
At the moment, I have only the unimpressive lines from the BackgroundPageGrid - the user can still move the shapes outside of this area (where they won't be visible when the diagram is used as dashboard in action).

Alex

2 Answers, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 23 Sep 2014, 06:22 AM
Hello Alex,

Please, take a look at the Custom Services SDK example of RadDiagram and let me know if it works for you. The example demonstrates implementing of few custom services including DraggingService that can restrict the drag of the shapes in a predefined rectangle

Regards,
Martin
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Alexander
Top achievements
Rank 1
answered on 30 Sep 2014, 12:45 PM
Thanks. Works as expected.
Tags
Diagram
Asked by
Alexander
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Alexander
Top achievements
Rank 1
Share this question
or