Hi, we have a load-on-demand TreeView with checkboxes. Is there a way to retrieve those nodes that have their checkboxes checked?
I've tried to use this code to retrieve them, but it only seems to return one item every time no matter how many nodes' checkboxes I check:
Thanks!
I've tried to use this code to retrieve them, but it only seems to return one item every time no matter how many nodes' checkboxes I check:
var tree = $find('<%=rpbPanelBar.Items(0).Controls(0).FindControl("rtvTreeView").ClientID %>'); |
for (var k = 0; k < tree.get_selectedNodes().length; k++) { |
var node = tree.get_selectedNodes()[k]; |
var i = node.get_value(); |
alert(i); |
} |
Thanks!