Click to See Complete Forum and Search --> : Get the checked nodes in Tree View in asp.Net


pu8y
February 16th, 2009, 01:04 AM
Hi all,

I created a tree view in asp.net and i use vb.net to bind the tree with me database.
My tree is a 3-layer tree as below:

Root
-sub-parent1
-child1
-child2
-child3
-sub-parent2
-child1
-child2

Each nodes will have a checkbox before them by using showcheckboxes=all. I want to get the event that when my checkbox is checked, I can get which is check so that other related information will be displayed in other panel. How can i make it? Since i tried the event for treeview in vb.net, there are :

- TreeView1.SelectedNodeChanged
- TreeView1.TreeNodeCheckChanged
- TreeNodeCollapsed
- etc...

But none of them can get the change. Any hints for me?

pu8y
February 16th, 2009, 03:11 AM
Just to add,

If I add a Button, then i can call a function which i can see those checked nodes via TreeView1.CheckedNodes. However what i wanted to have is "real-time", mean user check on the checkbox, i can straight away get the value.