This is a migrated thread and some comments may be shown as answers.

RadTreeViewItem bringtoview

1 Answer 65 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Mohamed Hussain Nabhan Hussain
Top achievements
Rank 1
Mohamed Hussain Nabhan Hussain asked on 13 May 2012, 10:12 AM
Is there a way to know which RadTreeViewItem that has just brought to view?

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 15 May 2012, 08:43 AM
Hi,

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.

Regards,
Hristo
the Telerik team

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

Tags
TreeView
Asked by
Mohamed Hussain Nabhan Hussain
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or