Page 1 of 1

Grid : Popup Menu on Right Click

Posted: Sat Nov 09, 2013 5:30 am
by k2R400
Hello,

Do you have an example (PUISAMPLES ?) with an option popup menu on a Grid ?
Example from ExstJS : --> right click on a row.

Re: Grid : Popup Menu on Right Click

Posted: Mon Nov 11, 2013 10:54 am
by Scott Klement
Unfortunately, I don't think we have a published example of this.

Normally, a right-click menu is handled with the 'context menu id' property on a PUI grid. You do this by adding a menu widget to the screen and hiding it. Then specify the id of the menu widget in the context menu id of the grid, and it will be displayed when you right-click on a row in the grid.

It's trickier if you want to modify the menu based on what's in the grid record, though, it's still possible with some JavaScript coding. Is that something you need to do?