2

1

I want to add extra elements (specifically a customized add subcase-link, like http://fogbugz.stackexchange.com/questions/59/bugmonkey-scripts-post-them-here/2794#2794) to the "Case 1234" popup menu on the "List cases" page.

Is it possible to add this (and possibly other) option(s) to the "Case 1234" submenu, using a customization?

flag

1 Answer

2

The following script will allow you to add an item to the list page's popup menu:

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;
link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.