05-26-2011 04:31 PM
Hi,
i use the .NET Treeview in my GUI.
Everything works fine besides:
- how to prgrammatically check/uncheck checkmarks?
- and how can is create chekboxes just for the childs and not for the parents? or the other way around, just not for all.
Sounds pretty simple but i just dont get it done 😕
I added a simple example.
I hope someone can help me :).
05-30-2011 11:25 AM - edited 05-30-2011 11:25 AM
Hi
I "updated" your VI to realize your "wishes"
Hope this helps you to understand the methods and to use them for your real application.
Regards Chris
06-01-2011 04:52 AM
thanks for your update 🙂
But i´m still missing on function:
just to have checkboxes in the parent node and no checkboxes in the children node.
Or the other way around.
I could checkmark all childrens when checking the Parent, but i just need checkboxes at the parent node at all.
So it looks a bit unlogic in my UI if the checkboxes of my childs dont do anything :D.
I looked for this function for a while now and just can´t find a solution 😕
03-14-2013 09:34 AM
I know this discussion has gone idle but thought I would try my luck. This is great for setting up the tree structure so that the user can interact with it, but how do I get the data out once the tree structure has been fully interacted with? Ideally this tree structure serves the purpose of letting a user select some data, how can I find out which levels of the tree have been selected and which levels of the tree have been left unselected?
Thanks!
03-14-2013 10:15 AM
I don't have experience with the .NET TreeView, but you would probably need to use the properties and methods to recursively get the data from all the nodes (basically get the Nodes property for the current node, get the count of that to know how many nodes there are, and then iterate over them using the get_Item method and get each node's data (text, tag, whatever) and child nodes. Then you would need to build it into a meaningful data structure.