This is a migrated thread and some comments may be shown as answers.

eventArgs.get_node Fails on Rad-Tree for Ajax

1 Answer 137 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Bruce
Top achievements
Rank 1
Bruce asked on 16 Jul 2008, 08:51 PM
Hi there,
I have a tree-view with checkboxes. When client checks a parent node, all of its corresponding child nodes should also be checked.

Following doesn't work for me, since I'm using RadTree for Ajax
function clientNodeChecked(sender, eventArgs)
{
   var childNodes = eventArgs.get_node().get_nodes();
   var isChecked = eventArgs.get_node().get_checked();
   UpdateAllChildren(childNodes, isChecked);
}
http://www.telerik.com/help/aspnet-ajax/tree_checkboxesallchildnodes.html

I do realize I have to replace get_nodes() with Nodes and get_checked() to Checked.... however, eventArgs.get_node() fails... I'm not sure what I should change it to... I've read all of
http://www.telerik.com/help/aspnet-ajax/tree_overviermigrating.html

There's no mention of what get_node() should be changed to... does eventArgs work anymore? Please help!

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 17 Jul 2008, 07:04 AM
Hi Bruce,

The code you have pasted should work with RadTreeView for ASP.NET Ajax. Do you try to achieve the same with RadTreeView "Classic"?

You can check the following examples:
RadTreeView for ASP.NET Ajax:
http://www.telerik.com/demos/aspnet/prometheus/TreeView/Examples/Functionality/CheckBoxes/DefaultCS.aspx
RadTreeView "Classic":
http://www.telerik.com/demos/aspnet/TreeView/Examples/Functionality/CheckBoxes/DefaultCS.aspx

Regards,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
Bruce
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or