javascript - Kendo MVVM Grid export all pages in pdf -
i found kendo grid exporting pages javascript code
$("#grid").kendogrid({ toolbar: ["pdf"], pdf: { allpages: true, filename: "kendo ui grid export.pdf", //optional proxyurl: "http://demos.telerik.com/kendo-ui/service/export" //optional }, .....
it exports pages of grid
how use allpages setting in mvvm grid like
<div data-role="grid" data-editable="false" data-columns="[ .... ]" data-selectable="false" data-bind="source: datasource" data-row-template="row-template" data-alt-row-template="alt-row-template" data-pageable="{ refresh: true, pagesizes: [50, 100] }" data-scrollable="true" data-toolbar="['pdf']" data-pdf=[{'allpages':'true'}] style="width: 100%; "> </div>
it exports visible page. have set paging true in data source problem?
try removing quotes boolean this:
data-pdf = [ { 'allpages': true } ]
Comments
Post a Comment