Declined
Last Updated: 06 Apr 2021 08:30 by ADMIN
Andrei
Created on: 29 Mar 2021 12:45
Category: UI for WPF
Type: Feature Request
0
How to disable automatic layout of elements in RadDiagram, after the Layout function is invoked?

Good afternoon,

When we add a new child element to the RadDiagram(see attach file), the diagram automatically optimizes their layout. After the chart is updated, the new element and its parent are automatically moved to the left side. How to make them stay in their places?

There is a small discussion of this problem on the forum.

Regards,
Andrei Silich

 

Attached Files:
10 comments
ADMIN
Petar Mladenov
Posted on: 06 Apr 2021 08:30

Hi Andrei,

The provided information is enough, thank you. 

Regards,
Petar Mladenov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Andrei
Posted on: 05 Apr 2021 14:08

Hello Petar,

Is there anything else I should do or provide anyone with any information?

Regards,
Andrei Silich

ADMIN
Petar Mladenov
Posted on: 02 Apr 2021 07:59

Hi Andrei,

Here is a link to the new feature request logged on your behalf:
https://feedback.telerik.com/wpf/1513822-diagram-add-option-to-avoid-sorting-the-independent-components-in-treelayout

Regards,
Petar Mladenov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Andrei
Posted on: 31 Mar 2021 08:14

Hello Petar,

Yes, that's right. We need an API that would allow us to disable automatic sorting of components after calling "Layout". To keep the components in place.

Regards,
Andrei Silich

ADMIN
Petar Mladenov
Posted on: 30 Mar 2021 15:26

Hi Andrei,

Ok let me summarize the requirement and if you agree, I will log it on your behalf with different name and will decline this one (redirect it to the new one).

    - You have initial tree layout which sorts the individual components of connected shapes horizontally. Sort is first by the number of nodes in component (decreasing), then by the width of the component decreasing. This part does not need change in the Diagram.

    - you add nodes to some components. You need API to call Layout which will 'tree down' the edited component but do not sort again the individual components ?

Regards,
Petar Mladenov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Andrei
Posted on: 30 Mar 2021 13:49

Hello Petar,

i can't give a working project, it's huge. I have attached several files to arhiva.

Every time I add or remove a chart element, I set property "SourceItems"  in the IdentDiagramViewModel and call a method of diagram "SetLayout".

Attached Files:
ADMIN
Petar Mladenov
Posted on: 30 Mar 2021 11:53

Hello Andrei,

Can you add sample or at least code files, instead of pictures ? If not easy to provide, can you point where do you call the Setlayout() funciton, is it called when a new item is added ?

Regards,
Petar Mladenov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Andrei
Posted on: 30 Mar 2021 11:03

Sorry, I forgot to attach an image of the diagram code

Regards,
Andrei Silich

Attached Files:
Andrei
Posted on: 30 Mar 2021 10:55

Hello Petar,

AutoLayout property is False.

I attached images with XAML and ViewModel of diagram.

Regards,
Andrei Silich

 

ADMIN
Petar Mladenov
Posted on: 30 Mar 2021 06:05

Hello Andrei,

In the mentioned thread I asked whether you use AutoLayout property to True ? Can you add more specific details regarding your scenario in case we are missing something - how do you populate the diagram (Items or GraphSource), how do you add items, etc.

Regards,
Petar Mladenov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.