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

Hierarchy radgrid ExportToExcel()

1 Answer 23 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
ali
Top achievements
Rank 1
ali asked on 06 Aug 2015, 10:45 AM

Hi everyone,
I'm trying to export Hierarchy radgrid to excel:

if (Grid != null)

{

reportGrid.ExportSettings.ExportOnlyData = true; reportGrid.ExportSettings.IgnorePaging = true; reportGrid.ExportSettings.OpenInNewWindow = true; reportGrid.MasterTableView.ExportToExcel();

}
but it does not do the export.
Do you have any idea?

thank you!​

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 10 Aug 2015, 03:49 PM
Hello Ali,

Could you verify that you are not using DataBind() to bind the grid? Performing complex grid operations such as Inserting, Deleting, Updating, Hierarchy relations, Grouping, Exporting, Paging, Sorting, Filtering, etc. require accommodating appropriate database operations.  Therefore, we suggest you to avoid Simple Databinding and strongly recommend the use of more advanced databinding methods, which automatically handle the aforementioned functions:
Declarative DataSource
Programmatic Data Binding


Regards,
Eyup
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
ali
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or