title: How to add toggle button from jqgrid toolbar to autogenerated context menu
body: <p>Toggle button in jqgrid top toolbar is defined using Oleg answer as</p>
  
  <pre><code>var autoedit;
  $("#grid_toppager_left table.navtable tbody tr").append(
      '&lt;td class="ui-pg-button ui-corner-all" &gt;' +
          '&lt;div class="ui-pg-div my-nav-checkbox"&gt;' +
          '&lt;input tabindex="-1" type="checkbox" id="AutoEdit" '+(autoedit ? 'checked ' : '')+'/&gt;' +
          '&lt;label title="Toggle autoedit" for="AutoEdit"&gt;this text is ignored in toolbar&lt;/label&gt;&lt;/div&gt;&lt;/td&gt;'
  );
  $("#AutoEdit").button({
      text: false,
      icons: {primary: "ui-icon-star"}
  }).click(function () {
      autoedit = $(this).is(':checked');
  });
  </code></pre>
  
  <p>Answer from <a href="https://stackoverflow.com/questions/8457495/how-to-add-standard-textbox-command-to-jqgrid-context-menu">how to add standard textbox command to jqgrid context menu</a> is used to autogenerate context menu for grid from toolbar.</p>
  
  <p>In generated context menu for this item only text "this text is ignored in toolbar" appears and selecting it does nothing. </p>
  
  <p>How to make it work or remove this item from context menu?</p>