Hi,
im trying to export PDF from my kendo grid but im facing some issues with pdf export settings.
@(Html.Kendo().Grid<
Statistics.Models.Inspection
>()
.Name("grid")
.Pdf(pdf => pdf
.AllPages()
.PaperSize("A4")
.AvoidLinks()
.Scale(0.8)
.RepeatHeaders()
.Margin("2cm", "1cm", "1cm", "1cm")
.TemplateId("page-template")
.FileName("Export.pdf")
)
.Excel(exc=>exc.AllPages(true).Filterable(true).FileName("exc.xlsx"))
Excel is working fine.
But PDF always exports only 1 visible page from the grid (and only few columns that fit to the page). I figured out that if i remove .PaperSize("A4") it is showing all data BUT its completely ignoring template and it renders grid to pdf with all buttons.
Thanks