Auto arrange diagram shapes

0 Answers 69 Views
Diagram
Omar
Top achievements
Rank 3
Iron
Iron
Iron
Omar asked on 03 Nov 2023, 02:27 PM

Hello,

 I'm a beginner when it comes to working with diagrams.

 I'm wondering if there's a method to automatically rearrange the shapes in the diagram using server-side code. For instance, in the image I've shared, I used x and y coordinates to position the shapes on the diagram. Is there a way to have the shapes auto-arrange themselves as soon as I establish connections between them?

 Best regards,

Omar

Rumen
Telerik team
commented on 06 Nov 2023, 02:56 PM | edited

Hi Omar,

RadDiagram offers client and server-side Layout arrangements of its shapes. You can find examples in the documentation and this demo:

 

To enable automatic layout:

  • Configure Layout Settings: Define a layout type and subtype that match how you want your diagram to be structured (e.g., Tree, Force-directed, Layered).
  • Set RadDiagram1.LayoutSettings.Enabled property to true to auto-arrange the shapes of the diagram.
Omar
Top achievements
Rank 3
Iron
Iron
Iron
commented on 06 Nov 2023, 07:21 PM

Thanks..

No answers yet. Maybe you can help?

Tags
Diagram
Asked by
Omar
Top achievements
Rank 3
Iron
Iron
Iron
Share this question
or