Hi
I have radgrid in my application.
Its working fine for me.
But
I'm usiing the Export to excel and csv functions.
Exporting grid to excel is working fine but export to csv not showing the data rather showing only data column names.
Please help me as soon as possible.
I have radgrid in my application.
Its working fine for me.
But
I'm usiing the Export to excel and csv functions.
Exporting grid to excel is working fine but export to csv not showing the data rather showing only data column names.
Please help me as soon as possible.
6 Answers, 1 is accepted
0
Accepted
Hello Ram,
Try to set ExportOnlyData to false when exporting to CSV format. If the problem still persists, please post your code here so that I can try to provide more to-the-point answer.
Best regards,
Daniel
the Telerik team
Try to set ExportOnlyData to false when exporting to CSV format. If the problem still persists, please post your code here so that I can try to provide more to-the-point answer.
Best regards,
Daniel
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
0
@CC
Top achievements
Rank 1
answered on 26 Oct 2011, 03:39 PM
Hello:
As the original request, I am having issues exporting to CSV format. I recently upgraded to the Q2.2011 version and the radgrid "export to csv" seems to have been affected. It no longer exports data only the headers. Export to PDF and Excel appear to be working (I prefer CSV).
The only are export settings modification are as follows:
radList.ExportSettings.Pdf.PageTitle = "some title";
i.e.,setting ExportOnlyData to true or false did not affect outcome.
Any advice?
Thomas
As the original request, I am having issues exporting to CSV format. I recently upgraded to the Q2.2011 version and the radgrid "export to csv" seems to have been affected. It no longer exports data only the headers. Export to PDF and Excel appear to be working (I prefer CSV).
The only are export settings modification are as follows:
radList.ExportSettings.Pdf.PageTitle = "some title";
radList.ExportSettings.FileName = "filename"; radList.ExportSettings.ExportOnlyData = false;
i.e.,setting ExportOnlyData to true or false did not affect outcome.
Any advice?
Thomas
0
Hello Thomas,
I would really appreciate it, if you could provide a simple project demonstrating this behavior as I already tried to reproduce the problem in different scenarios but unfortunately to no avail.
If you have found a bug, the sample project will help us pinpoint it in no time. Otherwise I will be able to provide straight-to-the-point answer.
Kind regards,
Daniel
the Telerik team
I would really appreciate it, if you could provide a simple project demonstrating this behavior as I already tried to reproduce the problem in different scenarios but unfortunately to no avail.
If you have found a bug, the sample project will help us pinpoint it in no time. Otherwise I will be able to provide straight-to-the-point answer.
Kind regards,
Daniel
the Telerik team
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 their blog feed now
0
Danniel
Top achievements
Rank 1
answered on 13 Sep 2016, 06:26 PM
hi, I'm having this problem too, My CSV is only exporting headers not Data, any help will be apprecciated.
0
Hi felipe,
Could you please provide your declaration and the related code behind in order to investigate it further?
Regards,
Kostadin
Telerik by Progress
Could you please provide your declaration and the related code behind in order to investigate it further?
Regards,
Kostadin
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Josh
Top achievements
Rank 1
Veteran
answered on 12 Jan 2017, 11:08 PM
Just posting my answer since no one else has responded. The issue is that the databinding is not happening during the export. You must rebind on postback in the page load or use OnNeedDataSource to bind the grid data. It will work flawlessly then.