How to diasable multiple selection of nodes in diagram?

Is it possible to disable RubberbandSelection mode ? I need to diable multiple selection of nodes in diagram.Only select one node at a time

3 Replies

AR Aravind Ravi Syncfusion Team February 20, 2020 11:42 AM UTC

Hi Mounika, 
 
Yes, It is possible to disable rubber band selection for the diagram. In diagram Tool property set diagramtool as ‘SingleSelect’. So that you can able to select only one node at a run time. Please find the below code snippet for how to set the tool as SingleSelect. 
 
<EjsDiagram @ref="@diagram" id="diagram" Width="100%" Height="499px" Tool="@DiagramTools.SingleSelect" Nodes=”@Nodes”
        </EjsDiagram>
 
 
 
For more information about diagram tool. Please refer to below UG documentation 
 
 
Regards 
Aravind Ravi 



MO Mounika February 20, 2020 11:51 AM UTC

Thank you,It is working as expected.


AR Aravind Ravi Syncfusion Team February 20, 2020 12:33 PM UTC

Hi Mounika, 
Thanks for the update. Please let us know if you need any further assistance.  
Regards 
Aravind Ravi 


Loader.
Up arrow icon