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

Export Individual Table Views as CSV

3 Answers 106 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bradley
Top achievements
Rank 1
Bradley asked on 22 Aug 2011, 07:52 PM
So I have a radgrid with a master table view and within that a details view for each index in the master table view. What i want to do is export just the master table view without the details. and also export the details with just the relationship key linking back to the index it is detailing for. What is the best way to do this?

-Brad

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 23 Aug 2011, 05:01 AM
Hello Bradley,

RadGrid does not support exporting hierarchical structure to CSV. Check the following help documentation which expalins more about this.
CSV export.

Thanks,
Princy.
0
Bradley
Top achievements
Rank 1
answered on 23 Aug 2011, 02:09 PM
What about exporting to excel? I seen the documentation and some sample projects on the forum but none of them exported just the details table or just the master table view to a document?
0
Mira
Telerik team
answered on 29 Aug 2011, 09:37 AM
Hello Bradley,

If you want to export only the master-table view, you can set the HierarchyDefaultExpanded property to false (this is the default value) temporarily for the export. Please note that for this setting to be applied, the grid needs to be rebound if IgnorePaging is not true.

Export only of detail tables is not supported. However, it might work in simple scenarios with the Export buttons of the command item or when the Export command of the corresponding table-view is fired.
Please provide more information on your scenario and we will do our best to find a work-around.

I hope this helps.

Regards,
Mira
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Grid
Asked by
Bradley
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Bradley
Top achievements
Rank 1
Mira
Telerik team
Share this question
or