Radgrid Export To Csv not showing data

7 posts, 1 answers
  1. Ram
    Ram avatar
    97 posts
    Member since:
    Jun 2011

    Posted 14 Jul 2011 Link to this post

    I have radgrid in my application.
    Its working fine for me.
    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.
  2. Answer
    Daniel avatar
    4949 posts

    Posted 19 Jul 2011 Link to this post

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

  3. @CC
    @CC avatar
    6 posts
    Member since:
    Jun 2008

    Posted 26 Oct 2011 Link to this post


    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?
  4. Daniel
    Daniel avatar
    4949 posts

    Posted 31 Oct 2011 Link to this post

    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,
    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
  5. Danniel
    Danniel avatar
    5 posts
    Member since:
    May 2016

    Posted 13 Sep 2016 Link to this post

    hi, I'm having this problem too, My CSV is only exporting headers not Data, any help will be apprecciated.
  6. Kostadin
    Kostadin avatar
    1733 posts

    Posted 16 Sep 2016 Link to this post

    Hi felipe,

    Could you please provide your declaration and the related code behind in order to investigate it further?

    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.
  7. Josh
    Josh  avatar
    19 posts
    Member since:
    Nov 2013

    Posted 12 Jan 2017 Link to this post

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