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.com2013-05-20T05:04:18Zhttp://fogbugz.stackexchange.com/feeds/question/10590http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://fogbugz.stackexchange.com/questions/10590/building-a-customization-that-adds-items-to-the-popup-menu-on-the-list-cases-paBuilding a customization that adds items to the popup menu on the "List cases" pageScharrels2012-07-16T08:59:07Z2012-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#10594Answer by db for Building a customization that adds items to the popup menu on the "List cases" pagedb2012-07-16T15:17:12Z2012-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(
$('<a>')
.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>