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?
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.
This is what's needed.
The only distinction is the structure is hierarchical and on each level we can have either A or B.
Remark:
Structure is recursive, not hierarchical.
Example:
NameA
John
- John2
- John3
- Shon
- Shon2
NameB1 NameB2
- Z1 Z2
- John4
- B01 B02
- B03 B04
Hello,
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
Can you edit your screenshots and mark with some line the elements you want to change so we can get a clearer view of your requirements?