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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





93289 Mar 8,2010 06:49 PM UTC Mar 9,2010 04:38 AM UTC WPF 1
Tags: Tools
Administrator [Syncfusion]
Asked On March 8, 2010 06:49 PM UTC

How do you get the parent of TreeViewItemAdv or how do you get the path of a TreeViewItemAdv.

I need to be able to programmtically expand the path of a node and bring the child node into view. How can I do that?

Prathap K.N [Syncfusion]
Replied On March 9, 2010 04:38 AM UTC

Hello Archer Tech team,

Thanks for using Syncfusion products.

We can get the parent of the TreeViewItemAdv, Please find the below code snippet.

ItemsControl parent = TreeViewItemObj.ParentItemsControl;

TreeViewItemAdv tviSel = TreeViewObj.ItemContainerGenerator.ContainerFromItem (TreeViewObj.SelectedItem) as TreeViewItemAdv;

Also we can programmatically expand the path of a node and bring its child into view from the below code snippet,

TreeViewItemObj.IsExpanded = true;

Hope these code snippets will provide you a solution. Please let us know for any further clarifications.



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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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