Detach context menu from grid

I am able to attach the context menu by “$$(‘dtContextMenu’).attachTo($$(‘myGrid’));”.

Need to detach the context menu from the grid.

There is no detach command :frowning:

You can add onBeforeShow handler to context menu and return false when menu must not be shown, instead of detaching it from the component.

Thanks Maksim :slight_smile: