Hierarchy radgrid ExportToExcel()

2 posts, 0 answers
  1. ali
    ali avatar
    2 posts
    Member since:
    Aug 2015

    Posted 06 Aug 2015 Link to this post

    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!​

  2. Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 10 Aug 2015 Link to this post

    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
Back to Top