I'm exporting my KendoGrid to PDF with a Template. I need to pass variables to the template like this:
This is the template:
PDF generation fails because "pageNum" and "totalPages" are undefined. This only happens when I pass my custom parameters. How do I pass the pageNum and totalPages parameters that are required? It work when I pass it like this:
but where do I get the right values?