I am using a jQgrid in my page. I need to export the data shown in the grid to pdf and excel. I have created a button and added a code like
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"
})
})
What else I need to do?