RadTreeViewItem bringtoview

2 posts, 0 answers
  1. Mohamed Hussain Nabhan Hussain
    Mohamed Hussain Nabhan Hussain avatar
    17 posts
    Member since:
    Feb 2012

    Posted 13 May 2012 Link to this post

    Is there a way to know which RadTreeViewItem that has just brought to view?
  2. Hristo
    Hristo avatar
    352 posts

    Posted 15 May 2012 Link to this post


    If you are calling the bring into view method you could store the item from the last call. If the TreeView internally initiates some item to be brought into view, for example by scrolling or expanding, there is no way of knowing which was the last one.
    However, you could attach a handler to the item prepared event of the TreeView itself. This event is called when some container has been generated in order to be added to the visual tree. You could check for the latest created item there. But there is no guarantee this item will be the latest one brought into view.

    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top