Hi there.
I have a tree view where the basic heirarchy is such:
Location
Company
Employee
The value for each of these nodes is a numeric id. My issue is that the Node values can be the same for the nodes at different levels of the tree. For example, the node value for Location X could be 23 AND the Node value for Employee 127 could be 23.
So, my problem is that the Find methods (FindByValue in this case) doesn't always find the correct node. I did add and Attribute to each node that defines the node level as defined by my below enum:
So, what I really need do do is find by both a value and an attribute. Ideas on how to best solve this issue without iterating through each node?
Thanks, Mike
Correction - I am saving the Node type in the DataItem of the node and not the Attribute.
I have a tree view where the basic heirarchy is such:
Location
Company
Employee
The value for each of these nodes is a numeric id. My issue is that the Node values can be the same for the nodes at different levels of the tree. For example, the node value for Location X could be 23 AND the Node value for Employee 127 could be 23.
So, my problem is that the Find methods (FindByValue in this case) doesn't always find the correct node. I did add and Attribute to each node that defines the node level as defined by my below enum:
public enum ReportTreeNodeType
{
Location,
Company,
Employee
}
So, what I really need do do is find by both a value and an attribute. Ideas on how to best solve this issue without iterating through each node?
Thanks, Mike
Correction - I am saving the Node type in the DataItem of the node and not the Attribute.