Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
645
UltraTree header above each node
posted

Good afternoon!

There's the recursive data, and I need to fiil with it an UltraTree.

Each node can be one of the two types (accordingly, two column sets). There are 2 classes A and B.

class Base {public List<Base> Coll {get;set;}}

class A : Base {public string NameA{get;set;}}

class B : Base {public string NameB1{get;set;} NameB2{get;set;}}

I populate the tree in code recursively using ColumnSets.

When I set property ViewStyle = FreeForm, I see a header above each node. It's terrible.

I want header to be shown only above the first child node.

How to implement this?

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    It's not clear to me what you want to display in the tree here. If you bind the tree to a List<Base> then the BindingManager will only return properties on the base class. You will bot see any properties of Class A or Class B, only properties on the Base. So in the case, why use FreeForm DisplayStyle?

    If each node has a different ColumnSet, then they will each display a header. There's no way around that.

    Perhaps you could post a screen shot of what it looks like or what you want to achieve.

Children