Expand to show new added items

2 posts, 0 answers
  1. Charles
    Charles avatar
    41 posts
    Member since:
    Mar 2012

    Posted 06 Mar 2013 Link to this post

    Hi

    I have a tree structure that's mirrored in a viewmodel structure - there's various event handlers in a 'wrapper' collection that monitor the tree structure for items added and removed and creates and removes corresponding viewmodels.

    When a viewmodel is added, it appears in the TreeListView as expected.

    Is there any way I can expand and select a 'new' item?

    I know I can bind selected items and IsExpanded, but from my description you might see that I don't have the viewmodel when the model is changed - this is done automatically.  I thought I'd see if anyone had a better idea before I go down that route.

    Thanks!

    Charles
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 07 Mar 2013 Link to this post

    Hi Charles,

     The only way to scroll an item into view is to use some of the RadTreeListView methods like ScrollIntoView, ScrollIntoViewAsync, etc. 

    Kind regards,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top