Home - Forums-.NET - FlyTreeView (ASP.NET) - Reading values of all checked nodes in tree

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

Reading values of all checked nodes in tree
Link Posted: 12-Jan-2007 01:01
I've been trying to write a javascript function that uses the GetCheckedNodes() function to return the values of all nodes in the tree that is checked.

The line running the function currently looks like

function nodeEventHandler(treeview, node, eventType)
{
treeview.GetCheckedNodes();
...
...
...
}


However the page errors with 'Object does not support this property or method'

Please can someone provide a code snippet that uses this function so that I can see where I'm going wrong!

Many Thanks
Link Posted: 12-Jan-2007 03:49
There's no direct copy of GetCheckedNodes() for Javascript.
But anyway you can try to use the following code:

var checkedNodesArray = treeview.findAll(function(node) { return
node.getChecked(); });

This code (though I've not tested it) should return checked nodes of
the treeview.