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

Choose order for container in AutoLayout

1 Answer 18 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Tulio
Top achievements
Rank 1
Tulio asked on 20 Feb 2019, 05:56 PM

Hi,

 

I am using RadDiagram to display a list of hexagons grouped in containers. The hexagons are displayed in the order that I add them to containers,

however the containers do not respect the order they are added when using AutoLayout.

 

Is there a way to use autolayout but still respect the order the items were added? (Top left to bottom right order).

1 Answer, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 25 Feb 2019, 09:18 AM
Hi Tulio,

The autolayout mechanism doesn't have an API that allows you to customize it. There is a DiagramLayoutComplete event which you can check, but this won't be very convenient to use. In your case I can suggest you to manually order to shapes added to the container using their Position property. I've attached a small example showing my idea. Can you check it out and let me know if it helps?

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Diagram
Asked by
Tulio
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or