Using @media print

2 posts, 0 answers
  1. chrisL
    chrisL avatar
    64 posts
    Member since:
    Dec 2005

    Posted 20 Mar 2015 Link to this post


    I am printing a div with a radhtmlchart and a couple radgrids in it and it works a treat. (Looking forward to the page break feature next release though!!)

    I need to be able to have a hidden image at the top and bottom of this div that only displays when I export to PDF. I've tried to put them in display:none divs and use  @media print {
                .printOnly {
                    display: block;

    But this doesn't work. I assume because the PDF export isn't actually a print operation. Is there another way I could do this?

    Thanks for your help.
  2. Peter Filipov
    Peter Filipov avatar
    1028 posts

    Posted 24 Mar 2015 Link to this post

    Hello Chris,

    During the export the following class is added to the exported area - "k-pdf-export". You could use it for your case.

    Peter Filipov

    See What's Next in App Development. Register for TelerikNEXT.

Back to Top