Im working with the tree component, and what I want is to center the verticalscrollposition to the selecteditem position when my selecteditem changes. When you click an item that is at the last o the second last row, of the tree, you woun't be able to see the children of that item.What I whant is to move the Vertical scroll bar's position automatically so that you can see these children without you having to move the vertical scroll bar. Any ideas how can I do it?
Here is a picture for you to look at what I want, if I wasn't really clear before:
Thank you for your time and help
You could hook yourself to listen when a node is expanded (itemOpen) and you could set after firstVisibleItem property to your opened element.
If you really want have your expanded element in the middle of the tree, keep in mind that a Tree is a ListBase and use selectedIndex to make some computations about who you shoul put firstVisibleItem so you can have your expanded element in the middle.
Claude, your solution worked just fine, thank you very much for your time.