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 we can disable the multiple selection


As the object indicates, we would like to leave the possibility for the user to select a single node so we want to remove the fact of selecting several nodes with the ctrl + click but also the selection with the left click pressed and to frame all the nodes wanted.

we think we have to use the constrains but we can't ...

Thanks for your help

1 Reply

SG Shyam G Syncfusion Team February 6, 2020 08:38 AM UTC

Hi Gaylord, 
Please set tool as SingleSelect which allows you to select individual nodes and the connectors. Please refer to a code example, sample and the help documentation below. 
Code example: 
  <ejs-diagram #diagram id="diagram" width="100%" height="700px"  [tool]='tool' > 
//allow single selection of node in the diagram. 
public tool: DiagramTools = DiagramTools.SingleSelect 

Shyam G 

Live Chat Icon For mobile
Up arrow icon