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

Set expanded item to top of current view

1 Answer 23 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 18 Aug 2010, 11:05 AM
Hello,

I'm having troubles concerning the following:

I have a customized RadTreeView, containing a lot of sub items. This implies the vertical scrollbar in my application...

However, when a user clicks a Item, it expands (like expected) but I would like to place the current expanding item on top of the screen so the user has a clear overview of what is inside the expanded item.

At this moment, the subitem expands but just does this vertically, without taking into account that the user would want to see its contents immediately... Is this possible with the TelerikControls?


Thanks in advance...

Greetings,
Ben

1 Answer, 1 is accepted

Sort by
0
Ben
Top achievements
Rank 1
answered on 18 Aug 2010, 01:09 PM
I managed to solve the problem by finding a previous post concerning this issue :-)

I found my help in following post: http://www.telerik.com/community/forums/silverlight/treeview/scroll-down-automatically-after-a-item-is-expanded.aspx

I was handling the TransformToVisual incorrectly... Key was to add an invisible border around my TreeView and then transoms the element to the border and fetch that point...

Greetings,
Ben
Tags
TreeView
Asked by
Ben
Top achievements
Rank 1
Answers by
Ben
Top achievements
Rank 1
Share this question
or