title: How to enable excel export button for jqGrid
body: <p>Hello
  I want to show "export to excel" button in the pager of jqgrid. I tried many ways, read many articles/posts, but I don't see this button. Documentation does not have anything useful too. Which actions should I do to see this button</p>
  
  <p>Ps. I use ASP.NET MVC</p>
  
  <p>PSS. my code is</p>
  
  <pre><code>&lt;link href="../../Scripts/jquery.UI/css/redmond/jquery-ui-1.8.1.custom.css" rel="Stylesheet"
      type="text/css" /&gt;
  &lt;link href="../../Scripts/jquery.jqGrid/css/ui.jqgrid.css" rel="Stylesheet" type="text/css" /&gt;
  &lt;script type="text/javascript" src="../../Scripts/jquery.jqGrid/js/jquery-1.4.2.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="../../Scripts/jquery.jqGrid/js/i18n/grid.locale-ru.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="../../Scripts/jquery.jqGrid/js/jquery.jqGrid.min.js"&gt;&lt;/script&gt;
  
  
  &lt;table id="EmployeeTable"&gt;
  &lt;/table&gt;
  &lt;div id="EmployeeTablePager"&gt;
  &lt;/div&gt;
  &lt;script type="text/javascript"&gt;
      jQuery(document).ready(function () {
          jQuery('#EmployeeTable').jqGrid({
              url: '/Employee/EmployeeData',
              datatype: "json",
              mtype: 'POST',
              jsonReader: {
                  page: "page",
                  total: "total",
                  records: "records",
                  root: "rows",
                  repeatitems: false,
                  id: ""
              },
              colNames: ['Id', 'Имя', 'Фамилия', 'Email', 'Date'],
              colModel: [
              { name: 'Id', width: 20 },
              { name: 'FirstName', width: 105 },
              { name: 'LastName', width: 100 },
              { name: 'Email', width: 150 },
              { name: 'Date', width: 150, formatter: ndateFormatter }
              ],
              pager: '#EmployeeTablePager',
              excel: true,
              viewrecords: true
          }).jqGrid('navButtonAdd',
          '#EmployeeTablePager',
          { caption: " Export to Excel ",
              buttonicon: "ui-icon-bookmark",
              onClickButton: genCSV, position: "last"
          });
      });
      function genCSV() {
          alert('a');
      }
  
      function ndateFormatter(cellval, opts, rwdat, _act) {
  
          var time = cellval.replace(/\/Date\(([0-9]*)\)\//, '$1');
          var date = new Date();
          date.setTime(time);
          return date.toDateString();
      }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>but I don't see the excel import button.
  <a href="http://ru.magicscreenshot.com/jpg/t97BDzCIO0Q.html" rel="nofollow">http://ru.magicscreenshot.com/jpg/t97BDzCIO0Q.html</a></p>
  
  <p>why?</p>