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

Export all rows to excel in RadTreeListView

6 Answers 167 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
rahul
Top achievements
Rank 1
rahul asked on 25 Mar 2011, 07:14 AM
I am exporting the data in RadTreeListView using Export function, it exports only the rows expanded by user manullay but I want to export all the rows irrespective users have expanded it or not. I have 10000 rows in a tree and users have to drill down manually all the rows one by one in a tree to export all the rows.
How can I export all the rows in RadTreeListView without expandign it? 

6 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 25 Mar 2011, 08:28 AM
Hello,

 You can call ExpandAllHierarchyItems() before exporting. 

All the best,
Vlad
the Telerik team
0
rahul
Top achievements
Rank 1
answered on 25 Mar 2011, 08:35 AM
Hi Vlad,
Thanks for your prompt reply, but that will forcefully change the users's view as it will expand all the nodes,which I do not want.
 
How if I can have the one more grid as replica and set the visible property to it's false and can use that grid for export purpose, but can we have better approach as I have 10000 records in a grid and I don't want to load it twice?
0
Marik
Top achievements
Rank 1
answered on 18 Apr 2011, 05:03 PM
Did you found a better solution (than call ExpandAllHierarchyItems())?
0
Du
Top achievements
Rank 1
answered on 25 Feb 2013, 09:27 AM
You can use function ExpandAllItems(), Example: RadTreeList1.ExpandAllItems()

0
Prithvi
Top achievements
Rank 1
answered on 29 Jan 2015, 10:57 AM
Hi, 

I have a radtreelistview. I want to do export excel, but not all elements, only elements which are visible to the user(some are collapased and some are expanded), only those which are visible should be exported.

Pls Help.
0
Maya
Telerik team
answered on 29 Jan 2015, 01:47 PM
Hello,

You can handle ElementExporting event and cancel it for the rows/ items that you do not want to be exported.

Regards,
Maya
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TreeListView
Asked by
rahul
Top achievements
Rank 1
Answers by
Vlad
Telerik team
rahul
Top achievements
Rank 1
Marik
Top achievements
Rank 1
Du
Top achievements
Rank 1
Prithvi
Top achievements
Rank 1
Maya
Telerik team
Share this question
or