title: How to enable jQgrid to Export data into PDF/Excel
body: <p>I am new in jQuery/jQgrid coding. I am using jQgrid version is 4.4.4 &amp; jQuery 1.8.3. I want to enable export to PDF/EXCEL functionality in my jQgrid. For that I referred following links - <a href="http://www.trirand.com/blog/phpjqgrid/examples/export/pdf/default.php">Click Here</a> and <a href="http://www.trirand.com/blog/phpjqgrid/examples/export/excel/default.php">Click Here</a>. On the basis of this links, I developed few lines of code in jquery which is as follows: </p>
  
  <pre><code>   .jqGrid('navGrid', topPagerSelector, { edit: false, add: false, del: false, search: false, pdf: true}, {}, {}, {}, {}
     }).jqGrid('navButtonAdd',topPagerSelector,{
      id:'ExportToPDF',
      caption:'',
      title:'Export To Pdf',
      onClickButton : function(e)
      {
          try {
              $("#tbPOIL").jqGrid('excelExport', { tag: 'pdf', url: sRelativePath + '/rpt/poil.aspx' });
          } catch (e) {
              window.location = sRelativePath + '/rpt/poil.aspx&amp;oper=pdf';
          }
      },
      buttonicon: 'ui-icon-print'
  });
  </code></pre>
  
  <p>But this code is not working properly. I searched on internet google a lot but I am not getting useful &amp; relevant info to achieve my task. Is anyone know how to do this???   </p>
  
  <p><strong>UPDATE:</strong> I a am not using paid version of jqgrid.</p>