This is a migrated thread and some comments may be shown as answers.

Hide Grid toolbar template while exporting

1 Answer 436 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anamika
Top achievements
Rank 1
Anamika asked on 18 Feb 2016, 08:49 AM

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

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 22 Feb 2016, 07:57 AM
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
Tags
Grid
Asked by
Anamika
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or