Unselect a node programmatically

When I load my diagram with symbols and then start it, one of the nodes is always selected. I don't want any of them to be selected. Is there a way to prevent this?


4 Replies

AD Administrator Syncfusion Team October 16, 2008 05:05 AM UTC

Hi RAS,

You can disable the default selection by the following call:

**********
this.diagram1.Controller.SelectionList.Clear();
**********

I am sure this will get the work done. Do write to me of your experiences.



RA Ron Alan Sawyer October 22, 2008 02:39 PM UTC

Thanks for the response. Unfortunately that did not do the trick for me. I made the call immediately after loading the nodes and the last one still is selected.



RA Ron Alan Sawyer October 24, 2008 09:42 PM UTC

Ajeet,
My apolgies, this was my error. Your solution did work, I had the code in the wrong place.



AD Administrator Syncfusion Team October 28, 2008 03:23 AM UTC

Hi RAS,

Its nice to know that the solution worked and you got your solution in the clear!

Regards,
Ajeet



Loader.
Up arrow icon