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.
Syncfusion Feedback

How to focus, scroll to, and select a sub treeview item programmatically?

Thread ID:

Created:

Updated:

Platform:

Replies:

121087 Nov 10,2015 12:16 AM UTC Nov 10,2015 08:30 AM UTC WPF 1
loading
Tags: TreeViewAdv
laura
Asked On November 10, 2015 12:16 AM UTC

How do I programmatically scroll to and select a subitem of an item of a treeviewadv?  subitem.IsSelected = true doesn't do anything.

Many thanks.

Berkunath A [Syncfusion]
Replied On November 10, 2015 08:30 AM UTC

Hi Laura,

Thank you for contacting Syncfusion Support.

We can select the SubItem of TreeViewItemAdv by setting IsSelected as True. We can scroll the TreeViewAdv by invoke ScrollToBottom, ScrollToTop or ScrollToVerticalOffset method with required offset of scrollbar. We can fetch the Scrollbar from the Template of TreeViewAdv. We have prepared the sample that tries to meet your requirement and you can download the sample from the following link.

Sample Link: TreeViewAdvsample

Please let us know if you need further assistance.

Regards,
Berkunath A

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.

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

;