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.

diagram.view.selectionlist is giving first last as threw some exception

Thread ID:





78273 Dec 7,2008 05:06 AM Dec 7,2008 10:29 PM Windows Forms 1
Tags: Diagram
Administrator [Syncfusion]
Asked On December 7, 2008 05:06 AM

I am using essential Diagram control and some nodes.I was trying to get the selection list of nodes from diagram on mouseclick on that node.First click on node gave me the selection list with nodes.But when I clicked again on the node it gave me Argument out of range exception exception like....
"Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index". Screenshot attached
Why this selection list works only once?Can anyone pls help me?


Administrator [Syncfusion]
Replied On December 7, 2008 10:29 PM

Hi Aida,

In the method, just type the following "IF condition clause":

NodeCollection nd = this.diagram1.View.SelectionList;
if (nd.First is Node)

Let me know if you need any further clarification in this regard, Thanks!

Happy coding!

- Ajeet


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.