[Data Grid] Disable right click menu items

Forge Component
(34)
Published on 12 Feb (9 days ago) by OutSystems R&D
34 votes
Published on 12 Feb (9 days ago) by OutSystems R&D

Hi,

Does anyone know of a way of disabling or hiding  individual menu items on the right click menu 

on an individual grid 

Solution

Hello Neil,

I think you want to hide the Context Menu.

Can you please see example here withou that menu - Dynamic row styles: https://outsystemsui.outsystems.com/DataGridSample/AdvancedSamples.aspx

You can download this example from Forge to see the code: https://www.outsystems.com/forge/component-overview/5555/

And also see some documentation about the context menu here: https://outsystemsui.outsystems.com/DataGridSample/GridComponents.aspx#ContextMenu


Hope it helps.

BR,

Luis

Solution

Hi,

Thanks I have no idea how I missed that.

You are welcome Neil!


Happy coding!


Br,

Luis

Neil Evans wrote:

Hi,

Does anyone know of a way of disabling or hiding  individual menu items on the right click menu 

on an individual grid 

Hi Neil Evans,

I understand what you want to do and I did it.

1. How to hiding  individual menu items on the right click menu on an individual grid.

Please add the red circled code in the correct position.

condition: Which screen you want to hide it




2. How to disabling individual menu items on the right click menu on an individual grid.

In function: disableUnchecked: function(gObj, obj, checked) {...}


Regards.

HuyenDV


Thanks for the reply, yes I can see that would work but it appears to require modification to the components javascript which will stop it from being easily upgradeable


Neil Evans wrote:

Thanks for the reply, yes I can see that would work but it appears to require modification to the components javascript which will stop it from being easily upgradeable


Of course will customize according to your project, not entirely dependent on GridFramework.

Let make it easily ^^