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.

Unselect a node programmatically

Thread ID:

Created:

Updated:

Platform:

Replies:

77135 Oct 15,2008 02:26 PM Oct 27,2008 11:23 PM Windows Forms 4
loading
Tags: Diagram
Ron Alan Sawyer
Asked On October 15, 2008 02:26 PM

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?


Administrator [Syncfusion]
Replied On October 16, 2008 01:05 AM

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.


Ron Alan Sawyer
Replied On October 22, 2008 10:39 AM

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.


Ron Alan Sawyer
Replied On October 24, 2008 05:42 PM

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


Administrator [Syncfusion]
Replied On October 27, 2008 11:23 PM

Hi RAS,

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

Regards,
Ajeet



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.

;