Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 78072

Grid PDF Export MVVM Template Header/Footer/Watermark

$
0
0

I've got it.

I don't know why the former doesn't work but the following does.

kendo.drawing.drawDOM($("#Grid"),
                        {
                            allPages: true,
                            avoidLinks: true,
                            paperSize: ["1300mm", "200mm"],
                            margin: { top: "2cm", left: "1cm", right: "1cm", bottom: "1cm" },
                            landscape: true,
                            template: $("#page-template").html()
                        }).then(function (documentgroup) {
                  
                            // Generate PDF file
                            kendo.drawing.pdf.saveAs(documentgroup, fileName);
                        });

 

I inserted that code in the click handler function, where I was previously calling

$("#breakDetailsGrid").data("kendoGrid").saveAsPDF();

 

Still tweaking it but at least I have my footer.

Thanks for the help!

 


Viewing all articles
Browse latest Browse all 78072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>