pdf.autoPrintBoolean
(default: false)
Specifies if the Print dialog should be opened immediately after loading the document.
Note: Some PDF Readers/Viewers will not allow opening the Print Preview by default, it might be necessary to configure the corresponding add-on or application.
Example - enable auto print for PDF export
<div id="grid"></div>
<script>
$("#grid").kendoGrid({
columns: [
{ field: "productName" },
{ field: "category" }
],
dataSource: [
{ productName: "Tea", category: "Beverages" },
{ productName: "Coffee", category: "Beverages" }
],
toolbar: ["pdf"],
pdf: {
autoPrint: true,
fileName: "Products.pdf"
}
});
</script>
In this article