Hello,
I have a bound RadTreeView that has its datasource set to a datatable. I've set the DisplayMember and ValueMember of the RadTreeView, but now I would like to bind some additional fields to the tree.
I understand that I can create a new class for the RadTreeNode (or just use the Tag property if I only needed one new value) and give it some additional properties, but how can I bind these new properties in the same manner that setting the ValueMember does? My class currently looks like this:
Public
Class
MyRadTreeNode
Inherits
RadTreeNode
Private
_Value1
As
String
Private
_Value2
As
String
Public
Property
Value1
As
String
Get
Return
_Value1
End
Get
Set
(value
As
String
)
_Value1 = Value1
End
Set
End
Property
Public
Property
Value2
As
String
Get
Return
_Value2
End
Get
Set
(value
As
String
)
_Value2 = Value2
End
Set
End
Property
End
Class
If this is not possible, could anyone recommend a workaround? I was looking at just looping through the tree's datasource, but since neither the DisplayMember nor the ValueMember are set to primary key columns, I don't believe this would be possible. I could change the ValueMember to a primary key but I'd like to avoid doing that if at all possible (I'm assuming I would take a pretty big performance hit if I did this).
Thanks in advance!