Hide Grid toolbar template while exporting

2 posts, 0 answers
  1. Anamika
    Anamika avatar
    157 posts
    Member since:
    Mar 2014

    Posted 18 Feb 2016 Link to this post


    I have Kendo grid which has Export to PDF button and other Buttons on toolbar. So i am using a toolbar template. As mentioned in Posts to hide toolbar i used the following css to hide toolbar button in exported pdf.

     .k-pdf-export .k-grid-toolbar,
          .k-pdf-export .k-grouping-header {
            display: none;

    But my pdf file Shows the toolbar with all Buttons. So i believe must be something to do with template. Please suggest how can i hide toolbar template in export





  2. Radoslav
    Radoslav avatar
    1566 posts

    Posted 22 Feb 2016 Link to this post

    Hi Anamika,

    I tried to reproduce the described issue on my side but to no avail. On the following link you can find a small example which shows that the toolbar is hidden in the exported file:
    This is caused by the mentioned style:
    /* Hide the Grid header and pager during export */
            .k-pdf-export .k-grid-toolbar,
            .k-pdf-export .k-pager-wrap
                display: none;

    Can you please check the example and let me know what differs in your case.

    Looking forward for your reply.

    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 Feedback Portal and vote to affect the priority of the items
Back to Top