Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Can FirstVisibleNode be set anyhow?  (Read 380 times)

0 Members and 1 Guest are viewing this topic.

JohnnyB

  • Newbie
  • *
  • Offline Offline
  • Posts: 24
Can FirstVisibleNode be set anyhow?
« on: February 23, 2011, 03:56:55 AM »
In my FlexibleTreeView I show set  no. 1 of data items. Then I clear the TreeView and show another set of data items.

Later set no. 1 is shown again and I want the first visible item to be the same as when the set no. 1 was shown the first time.

The method ScrollTo assures the respective item to be visible, but does not exactly move it to the first position.

How can I make a certain Node to be the first visble one?

Ruslan

  • Flexible TreeView Team
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 569
Re: Can FirstVisibleNode be set anyhow?
« Reply #1 on: February 23, 2011, 02:01:44 PM »
Please use the VertScrollPos treeview property to set the first visible node. All visible nodes have zero-based index. So using this property you can save first node and restore it later.
 

Copyright © 2006-2012 ARMSoft. All rights reserved.