RadGrid PDF Export password???

5 posts, 0 answers
  1. Raju
    Raju avatar
    8 posts
    Member since:
    Aug 2012

    Posted 21 Nov 2012 Link to this post

    I have used telerik rad grid client-side programmatic binding. Every thing working fine but when we export data to pdf, it is asking password. How to open this pdf?

    Radgrid.AutoGenerateColumns = true;
           Radgrid.MasterTableView.AllowPaging = true;
           Radgrid.MasterTableView.IsItemInserted = true;
           Radgrid.ExportSettings.OpenInNewWindow = true;
           Radgrid.AllowFilteringByColumn = false;
           Radgrid.ExportSettings.ExportOnlyData = true;
           Radgrid.ExportSettings.HideStructureColumns = true;
           Radgrid.MasterTableView.HierarchyDefaultExpanded = false;
           Radgrid.MasterTableView.NestedViewTemplate = null;
           Radgrid.MasterTableView.HierarchyDefaultExpanded = false;
           Radgrid.MasterTableView.ClearChildEditItems();
           Radgrid.ExportSettings.FileName = filename;
           Radgrid.ExportSettings.Excel.Format = GridExcelExportFormat.Html;
           Radgrid.MasterTableView.ExportToPdf();
            

    Thanks in advance.
  2. Daniel
    Admin
    Daniel avatar
    4949 posts

    Posted 21 Nov 2012 Link to this post

    Hello Raju,

    RadGrid does not support export with client-side binding out-of-the-box. The fact that the PDF viewer is asking you for a password means that the header of the PDF file is broken. In the older versions of RadControls for ASP.NET AJAX there was a bug that caused this behavior but it was fixed a long time ago. This is why I suppose that you are using a very old version of our controls. If this is so, please try to upgrade to a newer one and then let me know if the problem still persists.

    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.
  3. Raju
    Raju avatar
    8 posts
    Member since:
    Aug 2012

    Posted 22 Nov 2012 Link to this post

    Thanks for quick reply Mr.Daniel . Let me check and get back to you.
  4. Raju
    Raju avatar
    8 posts
    Member since:
    Aug 2012

    Posted 05 Dec 2012 Link to this post

    We are using Telerik.web.ui.dll vesion 2012.3.1016.35
  5. Daniel
    Admin
    Daniel avatar
    4949 posts

    Posted 07 Dec 2012 Link to this post

    Hello Raju,

    The version of RadControls you mentioned should not exhibit this behavior. Could you please try to isolate the problem in a simple, runnable demo so that I can debug it on my end?

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