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.

Clicking on an Node Component

Thread ID:

Created:

Updated:

Platform:

Replies:

70225 Dec 3,2007 08:39 AM Dec 6,2007 06:26 PM ASP.NET Web Forms (Classic) 2
loading
Tags: DiagramWebControl
Catalin Zitti
Asked On December 3, 2007 08:39 AM

I have a complex node that contains several icons and when an user clicks on an particular icon I would like to know on what icon he clicked, how can I do that?

I tried using the NodeClick event but it only returns the parent node in "e.Node" .

Thank you.


Catalin Zitti
Replied On December 5, 2007 12:57 AM

No solution possible for this problem?


Nandakumar R [Syncfusion]
Replied On December 6, 2007 06:26 PM

Hi Catalin,

I regret for the inconvenience caused in the delay in getting back to you on this issue. You can try the below code to access the image index in the image list and trace the image that you are looking for.

I have used the TreeView MouseUp event and got the SelectedNode for this operation.

[C#]
private void treeViewAdv1_MouseUp(object sender, MouseEventArgs e)
{
int _index = this.treeViewAdv1.SelectedNode.LeftImageIndices[0];

this.pictureBox1.Image = this.imageList1.Images[_index] as Image;
}


[Sample]
http://websamples.syncfusion.com/samples/Tools.Windows/F70225/main.htm

Please try this and let me know if this helps.

Regards,
Nanda


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.

;