0

I need to hide the context menu for standard list views on Sharepoint 2013. I have an internet facing site, using the standard list views only customized from CSS, JS, JSLink, etc. and also on tabular styles of the view. On SP2013 the right-click on any list item give us the context menu item, which my client didn't want at all on the internet facing site collection.

All my searches on the subject returns with tips on hiding or adding one item of the menu, but I couldn't find nothing on disabling at all the right-click function.

1 Answer 1

1

You need to modify the views of the lists and remove the field with property linked to item with edit menu. Instead you may use the field with linked to item property.

2
  • Thanks. I didn't think on it because the right-click operation works on any space of the row, not precisely on the field with edit menu, but it seems to be the solution and I'll come back when tried.
    – nilsandrey
    Commented Jul 3, 2015 at 12:59
  • Actually the view was personalized by scripting using SPClientTemplates.TemplateManager.RegisterTemplateOverrides, so in our case we have the call oncontextmenu='return ShowCallOutOrECBWrapper(this, event, false)' that must be removed. Of course that situation wasn't described on the original question, and the answer to the implied original described situation was correct.
    – nilsandrey
    Commented Jul 7, 2015 at 17:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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