We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

DirectedTreeLayout doesn't allign nodes automaticaly

Hello everyone,

It seems that DirectedTreeLayout  doesn't allign nodes automaticaly, if Nodes and Connectors are bound to ViewModel properties.
I've prepared a demo app, where the issue is shown.  It's just a simple app where only one view and one view model, nodes are created on view model side etc.

PS: If I call "Diagram.LayoutManager.Layout.UpdateLayout();" right after creation of nodes, it does work. Should it be applied automaticaly, shouldn't it?

thanks in advance.

Attachment: SDiagramIssue_7b3aa367.zip

3 Replies

SC Saranya Chandrasekaran Syncfusion Team October 28, 2014 11:49 AM UTC

Hi Vladimir,

It is by design that SfDiagram WinRT updates the Layout in its loaded event (i.e. Data for Layout are assigned before that). After analyzing your sample, we came to know that Data for Layout is assigned in Page loaded event (after Diagram is loaded). So, the Layout does not get refreshed. In order to solve this problem, Layout can be updated manually after data assigned.

Please let us know if you have any concerns

Saranya C

VL Vladimir October 28, 2014 09:07 PM UTC


thanks you for the response. 
so, if it does not apply automatically , then it creates a node somewhere on a random position and only if I call ApplyLayout it will be realigned. right? It doesn't make much sense to me.  I would definitely like to see this feature released. :)


SC Saranya Chandrasekaran Syncfusion Team October 29, 2014 09:33 AM UTC

Hi Vladimir,

We have considered requirement as feature request “Support to update Layout automatically when collection changed”. However to access this, we request you to create your customer account in Direct Trac and open a new incident so that our support engineer will assist you accordingly.

Our Direct Trac support system can be accessed from the following link:                              

Link: https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Please let us know if you any concerns


Saranya C

Live Chat Icon For mobile
Up arrow icon