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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

78273 Dec 7,2008 10:06 AM UTC Dec 8,2008 03:29 AM UTC WinForms 1
loading
Tags: Diagram
Administrator [Syncfusion]
Asked On December 7, 2008 10:06 AM UTC

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?

/Sebastain


Administrator [Syncfusion]
Replied On December 8, 2008 03:29 AM UTC

Hi Aida,

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

NodeCollection nd = this.diagram1.View.SelectionList;
if(!nd.IsEmpty)
if (nd.First is Node)
{
MessageBox.Show("Test");
}

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

Happy coding!

- 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.

Warning Icon 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.Close Icon

;