Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
In the page template, I think you should be able to use the OnInit or OnLoad event handler or similar to set ContextMenu.IsMenuEnabled = false.
This will solve your problem
protected override void OnPreInit(EventArgs)
{
ContextMenu.IsMenuEnabled = false;
base.OnPreInit(e);
}
/Stefan
Good morning,
I'd like to disable the right click menu on certain page types. Is this possible? The only source I've got on the topic is this one but it doesn't clear things out for me.
http://world.episerver.com/Templates/Forum/Pages/thread.aspx?id=24048