Below code generates exception "Key already exists":
ultraTree1.Nodes.Add("HELLO");ultraTree1.Nodes.Add("hello");
Is it possible to make WinTree case-sensitive? By default UltraTree doesn't distinct keys, which differs in letter case (as "hello" and "HELLO").
No, there is no way to make the keys case sensitive.
I am very confused. in some places people say keys are NOT case sensitive in others they say they are.
Which is it?
Hi Daryl,
It depends on what collection you are talking about. This post is referring to the keys of nodes in the UltraWinTree control, which are not case sensitive. Which means that case is not taken into account when determining if the keys are equal.
So "HELLO" is the same as "hello" in this case.
Hello,
Has this feature been implemented yet??
We need case-sensitive Ultratreenode for our project.
Thanks.
Namrata
namrataghadi said:Has this feature been implemented yet??
No, I encourage you to Submit a feature request to Infragistics
Mike,
I have just requested this to become a feature, thanks for the link! Does Infragistics have a UserVoice site, or the like, so that we might be able to gain some visibility into the current feature requests, most popular etc?
Thanks,
Nick
Hi Nick,
What you can do is handle the InitializeDataNode event and set the Key of the Node to whatever key you want. Be sure to check e.ReInitialize and only set the key when it is false (assuming that your keys won't change).
When binding the tree to a collection of objects, is it possible to tell the tree what property you want to use as the key? Because my data is case sensitive, but if I can provide a property that would be unique across the tree, that would probably alleviate my problem.
No, I don't think we have anything like that for feature requests, yet.