1
我在页面中使用jQgrid。我需要将网格中显示的数据导出为pdf和excel。我创建了一个按钮并添加了一个代码,如将jQgrid中的数据导出为pdf格式的jquery代码
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"
})
})
我还需要做什么?
从哪里exportGrid()函数被调用? –
Inside click event @AA – Manoj
在我的结尾没有显示任何标记为重复的链接,这就是为什么我这样做@DipenShah – Manoj