It would be nice if additional template variables where available, the only two: pageNum & totalPages are not enough.
Consider Time of Day & Filename at a minimum.
https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/configuration/pdf.template
Yes, your example works. I am able to get the filename in the header, and date in the footer.
Thanks.
<script>
var
fileName =
"Test"
;
</script>
<
script
type
=
"x/kendo-template"
id
=
"page-template"
>
<
div
class
=
"page-template"
>
<
div
class
=
"header"
>
#:kendo.toString(new Date(), "d")# - File name #: fileName #
<
div
style
=
"float: right"
>Page #: pageNum # of #: totalPages #</
div
>
</
div
>
<
div
class
=
"watermark"
>KENDO UI</
div
>
<
div
class
=
"footer"
>
Page #: pageNum # of #: totalPages #
</
div
>
</
div
>
</
script
>