All Components

PDFCommandDirective

Represents the Export to PDF command of the Grid.

You can apply this directive to any button element inside a
ToolbarTemplate.

When the user clicks a button associated with the directive, the
pdfExport event
fires. For more information, refer to the PDF export example.

<kendo-grid>
     <ng-template kendoGridToolbarTemplate>
         <button kendoGridPDFCommand>Export to PDF</button>
     </ng-template>
     <kendo-grid-pdf fileName="Grid.pdf">
     </kendo-grid-pdf>
</kendo-grid>

Selector

[kendoGridPDFCommand]

In this article