简体   繁体   中英

Pdf export not work in kendo grid

I am developing a application in which data is display in kendo grid.Now I want to export this pdf/excel. For this I create a sample - http://jsfiddle.net/pporwal26/y6KdK/83/

$("#grid").kendoGrid({
    toolbar: ["pdf"],
    pdf: {
        allPages: true
    },
    pageable: true,
    scrollable: true,
    pageable: {
        pageSize: 2,
        refresh: true,
        change: function(e) {
            nextData(e.index);
        }
    },
    dataSource: {
        serverPaging: true,
        schema: {
            data: "FileList",
            total: "total",
        },
        data: jsonData
    },

});
}

In this sample I have two problems -

  1. export this grid in pdf/excel.
  2. When I click on next page my next page json is come from the function.Si I want that I download pdf with all page data.

Be sure you have referenced JZIP script. You can use this CDN:

src="//cdnjs.cloudflare.com/ajax/libs/jszip/2.4.0/jszip.min.js"

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