Hi,
I have implemented Load On Demand . But I want to expand the whole tree on click of a button . I am trying to use expandAllNodes() method, but it is not working . Can you tell me with an examaple how can I able to achive this ?
Regards
Manoj
I have implemented Load On Demand . But I want to expand the whole tree on click of a button . I am trying to use expandAllNodes() method, but it is not working . Can you tell me with an examaple how can I able to achive this ?
Regards
Manoj
6 Answers, 1 is accepted
0

Princy
Top achievements
Rank 2
answered on 16 Jan 2009, 09:22 AM
Hi Manoj,
The ExpandAllNodes() method must work with out any issues. But it will expand only the nodes that have ExpandMode set to ClientSide. Have a look at the following help article.
Expanding Nodes
Thanks
Princy
The ExpandAllNodes() method must work with out any issues. But it will expand only the nodes that have ExpandMode set to ClientSide. Have a look at the following help article.
Expanding Nodes
Thanks
Princy
0

Manoj
Top achievements
Rank 1
answered on 28 Jan 2009, 08:01 AM
Hi Princy,
I have implemented the Load On Deman. I have to do a search in the tree view control . Currently the search is possible only in expanded node in the tree . If your entered string is under a node then it cannot search that string in the tree view control .
For this reason I want to expand the whole tree when I click on search button . For this reason I am thinking to call the "
Regards
Manoj
I have implemented the Load On Deman. I have to do a search in the tree view control . Currently the search is possible only in expanded node in the tree . If your entered string is under a node then it cannot search that string in the tree view control .
For this reason I want to expand the whole tree when I click on search button . For this reason I am thinking to call the "
rtvDetailData_NodeExpand(
object sender, RadTreeNodeEventArgs e)
" event on button click event in a loop . But when I am calling the rtvDetailData_NodeExpand(0,1) it is giving error as "cannot convert from 'int' to 'Telerik.Web.UI.RadTreeNodeEventArgs" . Can you tell me how to do this .
Regards
Manoj
0

Manoj
Top achievements
Rank 1
answered on 28 Jan 2009, 11:55 AM
Hi,
Anybody can help me out .
Regards
Manoj
Anybody can help me out .
Regards
Manoj
0

-DJ-
Top achievements
Rank 1
answered on 05 Feb 2009, 06:55 PM
Hi,
I'm dealing with a very similar problem as Manoj.
I have a LOD treeview with a server-side population. I need to set a specific node to selected, but I cannot access it as it hasn't been loaded. So I need to be able to call the nodeExpand sub.
If I call it from the codebehind, what would I use as object and eventargs?
Call Tree_NodeExpand(whathere?, whathere?)
Regards,
-DJ-
I'm dealing with a very similar problem as Manoj.
I have a LOD treeview with a server-side population. I need to set a specific node to selected, but I cannot access it as it hasn't been loaded. So I need to be able to call the nodeExpand sub.
If I call it from the codebehind, what would I use as object and eventargs?
Call Tree_NodeExpand(whathere?, whathere?)
Regards,
-DJ-
0
Accepted
Hello,
The first argument is the sender of the event - pass the treeview instance. The second is of type RadTreeNodeEventArgs - here is how to use it:
Dim args As RadTreeNodeEventArgs = new RadTreeNodeEventArgs(nodeToExpand)
where nodeToExpand is just that - the node instance which you wish to expand. Here is a sample invocation:
Tree_NodeExpand(RadTreeView1, RadTreeView1.Nodes(0))
I hope this helps,
Albert
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
The first argument is the sender of the event - pass the treeview instance. The second is of type RadTreeNodeEventArgs - here is how to use it:
Dim args As RadTreeNodeEventArgs = new RadTreeNodeEventArgs(nodeToExpand)
where nodeToExpand is just that - the node instance which you wish to expand. Here is a sample invocation:
Tree_NodeExpand(RadTreeView1, RadTreeView1.Nodes(0))
I hope this helps,
Albert
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0

-DJ-
Top achievements
Rank 1
answered on 06 Feb 2009, 02:23 PM
Thanks Albert,
That was exactly what I (and presumably Manoj) was looking for.
Regards,
-DJ-
That was exactly what I (and presumably Manoj) was looking for.
Regards,
-DJ-