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.

TreeViewAdv

Thread ID:

Created:

Updated:

Platform:

Replies:

93289 Mar 8,2010 01:49 PM Mar 8,2010 11:38 PM WPF 1
loading
Tags: Tools
Administrator [Syncfusion]
Asked On March 8, 2010 01:49 PM

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 8, 2010 11:38 PM

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;
TreeViewObj.BringIntoView(TreeViewItemObj);

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

Regards,
Prathap

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.

;