Clicking on an Node Component

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.


2 Replies

CZ Catalin Zitti December 5, 2007 05:57 AM UTC

No solution possible for this problem?



NR Nandakumar R Syncfusion Team December 6, 2007 11:26 PM UTC

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


Loader.
Up arrow icon