Diagram: Get nodes OffsetX and OffsetY in automatic layout

I would like to get the OffsetX and OffsetY-values of nodes in an automatically layout diagram.
The properties are always 0.

I would like to add some nodes below the selected node and dont want to let these new nodes layouted automatically.

best regards
Tobias

7 Replies

AR Aravind Ravi Syncfusion Team April 23, 2020 09:23 AM UTC

Hi Tobias, 
 
Could you please confirm us that you add nodes in layout through data source or you add nodes and connectors manually  and then call layout in the diagram. So that it would help us to proceed further. 
 
Regards 
Aravind Ravi 



TK Tobias Koller April 23, 2020 09:52 AM UTC

I'm using LayoutType.ComplexHierarchicalTree.
So the layout and positions are set automatically by the diagram.

But when I want the position of one of the nodes, OffsetX and OffsetY are always 0.

I have a workaround:
I take the diagram.SelectedItems.OffsetX and OffsetY.
In my diagram only one item can be selected at once so this works for me.

To add custom nodes with individual positions I simply add a new Layer which seems to work fine.

Best regards
Tobias


AR Aravind Ravi Syncfusion Team April 24, 2020 12:26 PM UTC

Hi Tobias, 
 
We are validating your requirements and update you with more details on April 28th 2020. 
 
Regards 
Aravind Ravi 



AR Aravind Ravi Syncfusion Team April 28, 2020 01:30 PM UTC

Hi Tobias, 
 
We are able to reproduce the reported issue at our end. We are validating the issue and update you with more details on April 30th 2020. 
 
Regards 
Aravind Ravi 



AR Aravind Ravi Syncfusion Team May 1, 2020 12:39 PM UTC

Hi Tobias, 

Sorry for the inconvenience caused. Due to complexity of issue we have forwarded the issue to our technical team. We are validating issue and update you with more details on May 5th 2020. 

Regards 
Aravind Ravi 



AR Aravind Ravi Syncfusion Team May 5, 2020 02:35 PM UTC

Hi Tobias,    
    
Reported Issue : Properties are not updated in server side 
      
We can reproduce the issue and confirmed this as a defect. We have logged a defect report for this issue. We will fix this issue and provide the patch on 26th May,2020 weekly patch release.  

     
    
Regards,    
Aravind Ravi 



AR Aravind Ravi Syncfusion Team May 26, 2020 11:33 AM UTC

Hi Tobias,  
    
We have fixed the reported issue and included it in our patch release(v18.1.54) which is rolled out successfully.   
   
Please upgrade to the latest version packages to resolve this issue.         
  
Regards,  
Aravind Ravi 


Loader.
Up arrow icon