Context Menu SharePoint List

How to hide items from context menu of a sharepoint list in SharePoint 2010 without modifying CORE.JS and by using javascript or jquery in CEWP  :

Item are as follows :-

Version History

Compliance Details

Manage Permissions

Alert Me

 

November 3rd, 2011 3:35pm

You can check following links:

http://sharepointism.blogspot.com/2008/05/hiding-context-menu-item-of-document.html

http://msdn.microsoft.com/en-us/library/cc768565%28v=office.12%29.aspx

http://www.codeproject.com/KB/sharepoint/sharepoint-customization.aspx?display=Print

Free Windows Admin Tool Kit Click here and download it now
November 3rd, 2011 3:55pm

 Use Following script :-

<script type="text/javascript">

window.onload = function() 
{

        AddVersionsMenuItem = function (m,ctx) { }
    
}</script>

This script is used to hide Default Version History from Context Menu.

to hide another items you need to find that menu item from Core.js by its Name and add it in function as follows:

<script type="text/javascript">

window.onload = function() 
{

        YourMenuItemName = function (m,ctx) { }
    
}</script>

July 13th, 2013 6:09am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics