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.
Unfortunately, activation email could not send to your email. Please try again.

How to disable multiselection of nodes, connectors, etc.

Thread ID:

Created:

Updated:

Platform:

Replies:

130433 May 12,2017 07:33 AM May 15,2017 03:35 AM WPF 1
loading
Tags: SfDiagram
Deepak
Asked On May 12, 2017 07:33 AM

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



Saranya Chandrasekaran [Syncfusion]
Replied On May 15, 2017 03:35 AM

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. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;