I have a tree of User objects backed by a ListCollectionView of Users. I
have a custom TreeDataDescriptor that shows these users and their roles.
This works fine when I have more than one user. However, if the tree
contains just a single user, the user node does not appear, only the
roles show up. How can I make my tree behave consistently here?

That is

with collection Users [ user1 , user2 ]

tree is:
 user1
  -- role1
  -- role2
 user2
  -- role1
  -- role2
  -- role3


with collection Users [ user1 ]

tree is:
 role1
 role2

tree should be
 user1
  -- role1
  -- role2


-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com


Reply via email to