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

Diagram arrange issue

6 Answers 79 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Ye HaoChen
Top achievements
Rank 1
Ye HaoChen asked on 29 Apr 2014, 02:42 AM
Hi,

I want to distribute selected diagrams horizontally and vertically.
Do the telerik provide some methods to do this?

6 Answers, 1 is accepted

Sort by
0
Arijit
Top achievements
Rank 1
answered on 30 Apr 2014, 10:40 AM
In addition to the above query I also would like to know about custom shapes I can add.
0
Martin Ivanov
Telerik team
answered on 30 Apr 2014, 02:00 PM
Hi Ye,

I don't think I completely understand your scenario. Can you tell me what you mean by distributing selected diagrams? Do you mean RadDiagramShapes? If so you can arrange the shapes position with the SettingsPane control which allows the user to modify the diagram items at runtime. You can see our First Look demo that demonstrates the settings pane. Note that the demo is in Silverlight but most of its code is shared with the WPF examples. If this doesn't help, can you provide me with a picture that shows the desired result.

In addition you can see the Structure help article that shows the visual structure of the diagrams.

As for the custom shapes you can take a look at the Create Custom Shape help article that demonstrates how to create one.

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
Ye HaoChen
Top achievements
Rank 1
answered on 03 May 2014, 04:27 PM
Hi Martin,

Thank you for your reply.
My first question is How to distribute the selected diagrams like MicroSoft visio dose.
Please see this url:
http://office.microsoft.com/en-us/visio-help/distribute-shapes-HP001231368.aspx

And the second one is could it be possible that implement RADDIAGRAM'S SETTINGSPANEL'S arrange function in the way of writing code.

Can you give me some examples?

Than you.

0
Martin Ivanov
Telerik team
answered on 07 May 2014, 01:40 PM
Hello Ye,

Note that  the RadDiagram doesn't support distribution of diagrams or shapes our of the box as described in the  Distributes Shapes article. However, you can implement such functionality with some custom logic. For example, you can create a custom SettingsPane and implement your own distribution functionality. The pane can contain a tab control with a tab called "Distribute" that holds buttons for each distribution. Then you can create event handlers (or commands) for those buttons which will execute the custom arrangement logic. 

In addition, you can take a look at our CustomSettingsPane SDK example which demonstrates how to create a custom SettingsPane.

Also note that the SettingsPane extension for the RadDiagram supports alignment of shapes out of the box. As I mentioned in my last reply you can see this functionality in our RadDiagram Silverlight and WPF demos. 

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.
 

  • Arrange shapes vertically and center
  • Arrange shapes vertically along bottom
0
Ye HaoChen
Top achievements
Rank 1
answered on 22 May 2014, 04:41 AM
?????????????????
0
Martin Ivanov
Telerik team
answered on 23 May 2014, 01:40 PM
Hello Ye,

It seems that there is an encoding issue with your reply and I can see only question marks. Can you please resend your reply and make sure that it is written with Latin letters. 

Thank you in advance.

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.
 
Tags
Diagram
Asked by
Ye HaoChen
Top achievements
Rank 1
Answers by
Arijit
Top achievements
Rank 1
Martin Ivanov
Telerik team
Ye HaoChen
Top achievements
Rank 1
Share this question
or