Expand / collapse button

Hi

I have the code

 evtArgs.Node.IsExpanded = True

Is there a way to get an 'expander' button on a node. At the moment I am firing this event with EventSink_NodeClick. 

Regards

Steve


3 Replies

NG Naganathan Ganesh Babu Syncfusion Team September 11, 2018 05:15 AM UTC

Hi Steve, 
 
Thanks for contacting Syncfusion support. 
 
We don’t have a built-in support for a button within the node to expand/collapse the node and we have provided a support for Expand/collapse the parent node by using Node’s “IsExpanded” property.  
 
However, we suggest you to customize the any Diagram’s shapes to create the shapes with button by using override the “Draw()” method in customized class. Please refer to our Expander sample which is installed in below mentioned location in your machine. 
 
[InstalledDrive]:\Users\Public\Documents\Syncfusion\Windows\[InstalledVersion]\Diagram.Windows\Samples\Getting Started\Expander 
 
Regards, 
 
Naganathan K G 
 



ST Steve September 11, 2018 10:53 AM UTC

Hi,

Thanks for the update.

Is there another location this example would exist. For some reason on installation the example files did not deploy.

Regards

Steve


NG Naganathan Ganesh Babu Syncfusion Team September 11, 2018 11:09 AM UTC

Hi Steve, 
 
No, the sample doesn’t exist in others location in your machine. However, we have attached the expander sample in below link. 
 
Sample: 
 
 
Regards, 
 
Naganathan K G 


Loader.
Up arrow icon