URL87
URL87

Reputation: 11012

Kendo UI - export Grid to PDF without pages chunks

I have Kendo UI Grid with paging chunks of 5 -

$("#grid").kendoGrid({
  pdf: {
    allPages: true
  },
  pageable: true,
  dataSource: {
    type: "odata",
    pageSize: 5,
    data: [...]
  }
})

And an export to PDF of this Grid -

var grid = $("#grid").data("kendoGrid");
var progress = $.Deferred();
grid._drawPDF(progress)

Here is its DEMO

Currently the export create the PDF with all the Grid content but with chunks of 5 ,

how could I export to the PDF with all the content without the chunks ?

(Note - I only want to change the export view not the view on the DOM )

Upvotes: 2

Views: 1747

Answers (1)

Alag
Alag

Reputation: 1408

It borrow pageSize property from grid. You need to change that to number of records which you would like to have on one page.

Dojo exemple

Upvotes: 1

Related Questions