on 11-08-2004 8:24 AM
Is there a way to mutiselect nodes in a Tree control?
Carmit.
Out of the box -- no.
You can emulate such functionality:
1. Add boolean attribute IsSelected and calculated string attribute Icon to node. Icon returns checked / unchecked image url depending on value of IsSelcted attribute.
2. Bind ImageUrl property of TreeNodeTreeItem to Icon attribute.
3. In TreeNode / TreeItem onAction handler toggle value of IsSelected attribute
Regards,
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Carmit,
You are thanking a poster for his answer.
Please next time also give him points.
See: /people/mark.finnern/blog/2004/08/10/spread-the-love
This time I did it for you.
Remember: When you ask a question you also assume the responsibility to assign points.
Please check your other questions and if the answers were good. Spread the love and give some points.
Thanks in advance, Mark.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.