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