[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Treenode status  XML
Forum Index -> Development
Author Message
mstoyanova

Power User

Joined: 26/09/2019 07:10:15
Messages: 48
Offline

How can I get treenodes statuses, I mean for the whole tree or should be item by item? It is because, the tree should keep old colapse/fold status after refresh.
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5510
Offline

Hi,

you have to keep the status per item and reapply when re-building-up the tree. Example: you may store these folder-items (by their id or name...) that are opened and then be default open the new items in a closed mode - exception for the ones that you stored.

The top node of the tree is reach-able by calling FIXGRIDTreeBinding.getRootNode(). Then you can dive downwards using getChildNodes() on item level.

Kind regards! Björn


Björn Müller, CaptainCasa GmbH
mstoyanova

Power User

Joined: 26/09/2019 07:10:15
Messages: 48
Offline

Thanks, Bjorn!
I made it this way, I thought that it is possible to keep the whole tree statuses.
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team