The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Adding Context Menu in SharePoint List/Library using Content Editor Web part
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Ruchi AgarwalPosted Dec 7, 2012, 6:58 AM
please help in hiding "Delete Item" from List Context menu in the same way as done for Library..not able to do the same
rami reddyPosted Dec 17, 2010, 4:49 AM
Now i am using window.open('http://csharpcorner.com')"; instead of Window.open('http://csharpcorner.com')";. issue is resolved now. Thanks alot.
rami reddyPosted Dec 16, 2010, 12:27 AM
///Script for List <script language="javascript"> function Custom_AddListMenuItems(m, ctx) { //Add your Menu Name which you want to display var strDisplayText = "Csharpcorner!"; // you customize the action based on your needs var strAction = "Window.open('http://csharpcorner.com')"; var strImagePath = ""; // Add our new menu item CAMOpt(m, strDisplayText, strAction, strImagePath); // add a separator to the menu CAMSep(m); // false means that the standard menu items should also be rendered // if you set true, it will show only the menu which you added( standard sharepoint menu items will not be available. // you can control by setting the value of true or false return false; } ///Similary you can hide the "Delete Item" (particular) menu item in List Context Menu // Add this below function function CAMOpt(p,wzText,wzAct,wzISrc,wzIAlt,wzISeq,wzDesc) { var mo=CMOpt(wzText,wzAct,wzISrc,wzIAlt,wzISeq,wzDesc); if(!mo)return null; if(wzText != "Delete Item") AChld(p,mo); return mo; } </script>
rami reddyPosted Dec 15, 2010, 8:50 AM
Menu item is displayed, but when i click on it, it is not redirected to corresponding page