【发布时间】:2017-06-01 06:05:16
【问题描述】:
我在我的页面中使用 jQgrid。我需要将网格中显示的数据导出为 pdf 和 excel。我创建了一个按钮并添加了类似的代码
jQuery("#btnExportPdf").on("click", function(){
jQuery("#jqGrid").jqGrid("exportToPdf",{
title: 'Export to PDF',
orientation: 'portrait',
pageSize: 'A4',
description: 'Meeting Details',
customSettings: null,
download: 'download',
includeLabels : true,
includeGroupHeader : true,
includeFooter: true,
fileName : "Meetings.pdf"
})
})
我还需要做什么?
【问题讨论】:
标签: jquery jqgrid export-to-pdf