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

How to disable multiselection of nodes, connectors, etc.

Hi,

Could you please provide sample or code sample to disable multi selection of nodes, connectors, etc?
User should be able to select single node / connector at any moment from the diagram. We should be able to disable multi selection which can be achieved using following options:
  • Keyboard like Ctrl + A
  • Mouse like dragging across the diagram while pressing left button
  • Keyboard + Mouse i.e. Ctrl + Mouse tap on node
  • Context menu, etc.


Thanks and regards,

Deepak



1 Reply

SC Saranya Chandrasekaran Syncfusion Team May 15, 2017 07:35 AM UTC

Hi Deepak, 
 
Requirement: 
Disable multi selection of Nodes and Connectors. 
 
Response: 
Your  requirement can be achieved by setting desired tool to the Tool property of the Diagram. We have provided code example to represent this. Please refer to the below code example. 
 
Code example: 
diagram.Tool = Tool.SingleSelect; 
 
Regards, 
Saranya C. 


Loader.
Live Chat Icon For mobile
Up arrow icon