Programmatically scrolling

2 posts, 1 answers
  1. Patrick
    Patrick avatar
    382 posts
    Member since:
    Aug 2012

    Posted 27 Aug 2014 Link to this post

    is there a possibilility to programmatically scroll the ListBox to display a specific item, something like ScrollIntoView of the WPF list box ?
  2. Answer
    Kalin avatar
    1279 posts

    Posted 28 Aug 2014 Link to this post

    Hi Patrick,

    RadListBox provides a ScrollIntoView method as well. For example if you need to scroll to last item on button click, it should be done as shown below:

    private void Button_Click(object sender, RoutedEventArgs e)
        this.listBox.ScrollIntoView(this.listBox.Items.Count - 1);

    Hope this helps.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top