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

RadTreeView & _expand()

4 Answers 51 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Suzi
Top achievements
Rank 1
Suzi asked on 15 Jul 2008, 03:20 PM
I use the version RadControls_Q4_2006_SP2_dev into my existing project. I would like to use RadControls_for_ASP.NET_AJAX_2008_1_619 into this project.

I read this article http://www.telerik.com/help/aspnet-ajax/tree_overviermigrating.html.

Into Client-Side Changes, th project doesn't recognize this javascript method :

- node.expand();
- node.set_expanded(true);

I don't know what to do... Do you have any idea ?

Thanks in advance,

4 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 15 Jul 2008, 03:22 PM
Hello Suzi,

What do you mean by saying "the project doesn't recognize this javascript method"?

Regards,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Suzi
Top achievements
Rank 1
answered on 15 Jul 2008, 03:41 PM
I have a javascript error :

node.expand is not a function.

node.expand();

I am using the trial version of telerik : RadControls_for_ASP.NET_AJAX_2008_1_619_trial

0
Accepted
Atanas Korchev
Telerik team
answered on 15 Jul 2008, 03:47 PM
Hi Suzi,

Please check this online example. It demonstrates how to expand/collapse nodes.

Kind regards,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Suzi
Top achievements
Rank 1
answered on 15 Jul 2008, 04:00 PM
So, The toggle method can be called only for the selectedNode ?

var treeView = $find("<%=RadTreeView1.ClientID%>")
var selectedNode = treeView.get_selectedNode();
selectedNode.toggle();
Tags
TreeView
Asked by
Suzi
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Suzi
Top achievements
Rank 1
Share this question
or