简体   繁体   中英

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 )

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM