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

RadGrid Export Issue

2 Answers 59 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Josh Coffield
Top achievements
Rank 1
Josh Coffield asked on 17 Sep 2010, 07:51 PM
I am having an issue with getting my ExportToExcel() to work on a RadGrid that has filtering enabled.  If I set the ExportOnlyData = false, then it will export but puts the filter links at the top of my spreadsheet which I don't want.  If I set it to true then exporting throws a server error "Unable to cast object of type 'System.Web.UI.LiteralControl' to type 'Telerik.Web.UI.RadComboBox'".  If I turn filtering off my export works the way I want it with ExportOnlyData = false.

Thanks,
Josh Coffield

2 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 21 Sep 2010, 11:37 AM
Hello Josh,

I am sending you a runnable sample project that is working as expected. Please give it a try and let me know what is the difference in your case.

Kind regards,
Pavlina
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Pavlina
Telerik team
answered on 21 Sep 2010, 12:05 PM
Hi Josh,

It seems that the attachment did not make it through. Please find the attached project here.

Kind regards,
Pavlina
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Josh Coffield
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or