Add URL Link in Exported PDF

2 posts, 0 answers
  1. Scott Lapp
    Scott Lapp avatar
    6 posts
    Member since:
    Apr 2007

    Posted 11 Feb 2010 Link to this post

    Hi, I am exporting a RadGrid to PDF. Everything works great.

    I now want to add an href URL link into the PDF but outside of the grid. Is this possible?

    My preference would be just below the Page Title.


  2. Daniel
    Daniel avatar
    4933 posts

    Posted 17 Feb 2010 Link to this post

    Hello Scott,

    This is possible to some extent, even though RadGrid doesn't support it out-of-the-box.
    protected void RadGrid1_PdfExporting(object source, GridPdfExportingArgs e)
        string tableWrapper = "<table style='width:100%; padding-bottom: 70px;'><colgroup><col /></colgroup><tr><td style='text-align: center'>{0}</td></tr></table>";
        string link = "<a href='' style='text-align: center; width: 100%'>Google</a>";
        e.RawHTML = String.Format(tableWrapper, link) + e.RawHTML;

    Best regards,
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top