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

Treelist Excel Export Not Showing Header Text

1 Answer 74 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Nabeel
Top achievements
Rank 1
Nabeel asked on 09 Oct 2013, 06:19 PM
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

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 14 Oct 2013, 08:38 AM
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.
Tags
TreeList
Asked by
Nabeel
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or