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

Export Tree nodes to excel

3 Answers 177 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Rishi
Top achievements
Rank 1
Rishi asked on 08 Mar 2010, 08:30 PM
Hi,

I am quite not able to figure out the following:

I have a tree view that has context menus on each tree node. One of the items in the menu is an option to allow user to export all the nodes from the root to the last of the current nodes children, is there a way to do that without having to loop through all the nodes in the tree?

Any help is appreciated.

Thanks,
Harisha

3 Answers, 1 is accepted

Sort by
0
Accepted
Veronica
Telerik team
answered on 09 Mar 2010, 11:06 AM
Hi harisha,

Very good question indeed.

One possible solution is to use the GetFullPath() method in the RadTreeView1_ContextMenuItemClick event like this:

protected void RadTreeView1_ContextMenuItemClick(object sender, RadTreeViewContextMenuEventArgs e)
   {
       MessageBox.Show(e.Node.GetFullPath("/"));
   }

I've attached the full code as a .zip file.

Please let me know if this was helpful.

Best wishes,
Veronica Milcheva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Venkatarajesh
Top achievements
Rank 1
answered on 02 May 2013, 07:54 AM
Hi

I wanted to export treeview structure in to excel, so that i can clearly see the root node and it's child nodes in pictorial view. I have the dll of RADTreeview  version  of 6.3.8.0. Could you please provide solution.

Thanks in Advance....

Venkat
0
Bozhidar
Telerik team
answered on 07 May 2013, 06:55 AM
Hi Venkatarajesh,

I regret to inform you that we no longer support RadControls for ASP.NET Classic.
 

Greetings,
Bozhidar
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TreeView
Asked by
Rishi
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Venkatarajesh
Top achievements
Rank 1
Bozhidar
Telerik team
Share this question
or