Home - Forums-.NET - FlyTreeView (ASP.NET) - get checked nodes count for treeview (client javascript)

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

get checked nodes count for treeview (client javascript)
Link Posted: 20-Oct-2005 02:50
Hi all,

I'm trying to get the count of checked nodes within the client to enable a submit button if count > 0.
I know to loop all the nodes of my TreeView Nodes Collection, but I'm afraid I don't know on how to address the root node collection of my TreeView element (called channelView).

Could anyone please point me in the right direction please?

kind regards,
/matthi.
Link Posted: 20-Oct-2005 04:18
Is the simple channelView.Nodes client-side reference not applicable in your case?
Link Posted: 20-Oct-2005 19:29
I tried an alert(channelView.Nodes.Length) and got "undefined" - which, honestly, worries me...

Besides, I do on demand loading of the nodes (not the root node itself) for performance reasons...
Link Posted: 20-Oct-2005 20:56
You should try to use lower case for Length property:

channelView.Nodes.length

What do you get in this case?
Link Posted: 20-Oct-2005 21:12
Thanks. This helped (at least for now).

Yeez... One should never program whilst having a bad flu.

Thanks a million!
/matthi.
Link Posted: 17-Nov-2005 20:35
I need this activities too. But I'm afraid I can't write down correct java code.

Would you please share the function for get all checkboxs value ?

I need add a node value to another listbox when user click checkbox.

Thanks a lot !