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. Image for the cookie policy date
close icon

Want the image on the last node.........

Hi, In the image overlaying sample when I select the image of the last node of the last parent node and then collapse the last parent node, the image is displayed in the tree not on the last node. It looks odd. Is there any way to rectify it. Expecting ur reply. Thanks, regards, Rick

2 Replies

DT Deepa TS Syncfusion Team January 18, 2006 05:36 AM UTC

Hi Rick, You can avoid the image displaying in the tree, while collapsing the Last Parent Node of last node by handling the BeforeCollapse event handler private void treeViewAdv1_BeforeCollapse(object sender, Syncfusion.Windows.Forms.Tools.TreeViewAdvCancelableNodeEventArgs e) { if(!this.treeViewAdv1.SelectedNode.HasChildren) this.treeViewAdv1.SelectedNode=this.treeViewAdv1.SelectedNode.Parent; } Please take a look at the attached sample and let me know if this helps you. Thanks for your continued interest in Syncfusion products. Regards, Deepa.T.S

TreeViewAdvImageOverLayingDemo0.zip


AD Administrator Syncfusion Team January 21, 2006 04:53 AM UTC

Thanx a lot!!

Loader.
Live Chat Icon For mobile
Up arrow icon