Treelist Excel Export Not Showing Header Text

2 posts, 0 answers
  1. Nabeel
    Nabeel avatar
    1 posts
    Member since:
    Jul 2011

    Posted 09 Oct 2013 Link to this post

    Hi,

    I have a TreeList with AllowLoadOnDemand="true". When I export the TreeList using the following code, the exported document has a blank row for header as can be seen in the attached screenshot.


    protected void radButtonExcel_Click(object sender, EventArgs e)
     
    {
     
    rptTreeList.ExportSettings.IgnorePaging = true;
     
    rptTreeList.ExportSettings.ExportMode = TreeListExportMode.RemoveAll;
     
    rptTreeList.Rebind();
     
    rptTreeList.ExportToExcel();
     
    }


    Please Help!

    Thanks,
    NA
  2. Kostadin
    Admin
    Kostadin avatar
    1713 posts

    Posted 14 Oct 2013 Link to this post

    Hi NA,

    You have to change the TreeListExportMode to ReplaceControls. More information could be found at the following help article.

    Regards,
    Kostadin
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top