programatically changing the height of a group container node

Hello
I am trying to programatically change the height of a node that is a group container. Unfortunately the solution in this thread https://www.syncfusion.com/forums/148553/set-node-position-and-size-programmatically doesn't work. The only difference between the mentioned thread and my case is that I'm trying to change the height of a group container node. How do I do this?

Thank you
Gergely

1 Reply 1 reply marked as answer

AR Aravind Ravi Syncfusion Team July 8, 2020 06:43 AM UTC

Hi Gergely, 

We have created a sample to show how to programmatically change the group container.  We also showed on initial render also we can set height and width for the group node. So based on the given height and width group node gets rendered in the diagram. 

     id: 'group', children: ['node1', 'node2'], style: { strokeWidth: 0, fill: 'transparent'}, 
     height: 150, width: 200 
      
  

public Change() { 
      this.diagram.selectedItems.nodes[0].height = 300; 
      this.diagram.selectedItems.nodes[0].width = 400; 
      this.diagram.dataBind(); 
   



Regards 
Aravind Ravi 



Marked as answer
Loader.
Up arrow icon