Is there a way to know which RadTreeViewItem that has just brought to view?
1 Answer, 1 is accepted
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 >>