Hide Grid toolbar template while exporting

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

    Posted 18 Feb Link to this post

    Hello,

    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

     

    Thanks

     

    Anamika

  2. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 22 Feb 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:
    http://dojo.telerik.com/IQIGi/3
    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.

    Regards,
    Radoslav
    Telerik
    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
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top