Exporting Hierarchical Telerik RadGrid to Excel

6.8k Views Asked by At

I have a Telerik RadGrid that is hierarchical with parent and child grids. However, when I call the ExportToExcel() method, only the MasterTableView is exported. When I call the ExportToExcel() method on the Details table, an error is thrown "RadGrid must be databound before exporting.". Any ideas how to accomplish this export?

2

There are 2 best solutions below

0
On BEST ANSWER

Telerik RadGridView does not currently support exporting hierarchy grids to excel. Please review the answer at this link for full details. Regards, Richard

0
On

Expand all inner levels (by setting the HierarchyDefaultExpanded property at each detail level to true) prior to calling the export method, which I think is meaningful solely for the entire grid.