Building a customization that adds items to the popup menu on the "List cases" page - FogBugz Knowledge Exchange most recent 30 from http://fogbugz.stackexchange.com 2013-05-20T05:04:18Z http://fogbugz.stackexchange.com/feeds/question/10590 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://fogbugz.stackexchange.com/questions/10590/building-a-customization-that-adds-items-to-the-popup-menu-on-the-list-cases-pa Building a customization that adds items to the popup menu on the "List cases" page Scharrels 2012-07-16T08:59:07Z 2012-07-16T15:17:12Z <p>I want to add extra elements (specifically a customized add subcase-link, like <a href="http://fogbugz.stackexchange.com/questions/59/bugmonkey-scripts-post-them-here/2794#2794" rel="nofollow">http://fogbugz.stackexchange.com/questions/59/bugmonkey-scripts-post-them-here/2794#2794</a>) to the "Case 1234" popup menu on the "List cases" page.</p> <p>Is it possible to add this (and possibly other) option(s) to the "Case 1234" submenu, using a customization?</p> http://fogbugz.stackexchange.com/questions/10590/building-a-customization-that-adds-items-to-the-popup-menu-on-the-list-cases-pa/10594#10594 Answer by db for Building a customization that adds items to the popup menu on the "List cases" page db 2012-07-16T15:17:12Z 2012-07-16T15:17:12Z <p>The following script will allow you to add an item to the list page's popup menu:</p> <pre><code>GridControl.jrgActionButtons = GridControl.jrgActionButtons.add( $('&lt;a&gt;') .attr({ command: 'custom', href: '#' }) .text('Custom') .on('click', function() { console.log('custom menu item clicked!'); }) ); // force list page to re-render the popup menu GridControl.showContextMenu.oMenu = undefined; </code></pre>