.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Remove action that appear in the menu which appears when we right click each individual item in libr

Posted By:      Posted Date: August 31, 2010    Points: 0   Category :SharePoint
i need to remove or hide edit properties menu from  menu which appears when we right click each individual item in library 

View Complete Post

More Related Resource Links

How to hide/remove "Alert Me" action menu item from Custom List/Document Library?


Hi All,


I am using Sharepoint 2007 (MOSS).

I want to hide/remove "Alert Me" action menu item from Custom List/Document Library for my Sharepoint site.


any help will be appreciated.



How to remove 'Delete Item' from context menu of a programmatically created list?

How to remove 'Delete Item' from context menu of a programmatically created list?
I have document library which is created programmatically but now I don't want to have 'Delete Item' in context menu of that document library. Are there any possibilites?

Static menu item click event not firing


Hello, I have a basic static menu using images for ui. I don't have the nav url set nor the value property set on any items. In  this configuration the Item Click event is not firing. If I set the value propery to any value the event fires however the value is displayed in the UI. This is not the desired effect as I do not anything other than the images to show in the ui. The code follows:


<asp:Menu runat="server" ID="MainMenuCtl" BorderWidth="0" Orientation="Vertical">
                                    <asp:MenuItem ImageUrl="~\App_Themes/SiteDefault/Images/Mediabutton.png" ToolTip="Media Clips" ></asp:MenuItem>
                                    <asp:MenuItem ImageUrl="~\App_Themes/SiteDefault/Images/CalendarButton.png" ToolTip="View calendar of events"></asp:MenuItem>
                                    <asp:MenuItem ImageUrl="~\App_Themes/SiteDefault/Images/PoetryButtonReg.png" ToolTip="Poetry"></asp:MenuItem>

feature to add a item to action menu


I have created a feature to show a new item to menu which has View Item, Edit Item etc.... My requirement is, this custom menu item should be displayed for a particular custom list, but not to all. this is in MOSS 2007. please let me know how should i do that?


How to keep the hover for Parent menu and set the selected menu item css for child menu item?



I'm using cssfriendly control adapter for menu. My asp.net menu control's datasource is a sitemap file I'm using which contains all the urls.

I have the following questions:

  1. Is there a way to keep the parent menu item hovered while hovering over the respective child menu items?
  2. Is there a way to keep the child menu item selected? I am able to set the css for the parent menu, however I was wondering if the same is possible with the child items.

Please help! Smile


Moneka Smile

ASP.NET 4.0 Menu Top Level selected item style


I want to apply a css class to the level 1 menu item (parent) when it or any or it's children are selected.

I've looked at MSDN documentation and any number of examples and walkthroughs but I haven't come up with a way of managing this. I was thinking something like this might work but the style is not being applied to the parent. To further complicate matters, if I try to apply a css style to StaticSelectedStyle it doesn't pick it up at all.

Menu Markup:

<StaticSelectedStyle  Font-Bold="True" ForeColor="#3333CC" />

Code Behind:

        protected void MenuItemClick_NavMenu(Object sender, MenuEventArgs e)


            MenuItem parentItem = e.Item.Parent;

            if (parentItem != null)


                parentItem.Selected = true;



Context Menu And Mouse Click Issue

Hello. I am trying to show a context menu at runtime on MouseRightButtonUp, while over a selected image. I also have left mouse button events set up for the selected image. For some reason I cannot get the context menu to show unless I click the left mouse button and while it is held down click the right mouse button and keep it down while I release the left mouse button, followed by releasing the right mouse button. I tested the MouseRightButtonUp event using a simple MessageBox and did not have any problems; it worked as expected when the right mouse button was released. Here is the code: //add behavior for right mouse on this image. img.MouseRightButtonUp += (sender, e) => { //Create Context Menu ContextMenu menu = new ContextMenu(); //img is an Image img.ContextMenu = menu; //Add context menu item MenuItem photoNewWindow = new MenuItem(); photoNewWindow.Header = "Open Original Image"; photoNewWindow.Click += OpenOriginal; //Add menu items to context menu menu.Items.Add(photoNewWindow); //change the current image currentImage = img; }; // add behavior for mouse click on this image. img.MouseLeftButtonUp += (sender, e) => { // left mouse stuff }; Thanks! 

listview with button in item template - how do I handle the click event?

Hello,Using a listview control for the first time... I need a button for each item, and of course I need to handle the click event for the buttons... upon clicking a particular button I of course need to know which item the button is associated with so the appropriate action can be taken...In VS, I can't select the button and see my list of available events in the properties window like is normally done for controls outside of templates like this... what do I need to do?

Creating a new document in Document Library from custom menu item (in the ECB)

Hello! I created a custom menu item in the ECB for a document library. I'd like for this to create a new document from this menu item. Additionally, I'd like to create a workflow where the Title of the document from which the menu action originates is inserted into a custom textfield in the new document that is created. Is this possible using SharePoint Designer?

Menu Item Spacing

I'm trying to use the menu control for the first time in ASP.NET and everything is fine except for the fact that I can't seem to change the item spacing property. My menu is a horizontal menu where the menu items have come from a sitemap file. I've tried changing the menu item spacing in both the dynamic and state menu item properties but nothing seems to change it. I've also tried changing the item spacing via css but that doesn't work either. Any ideas why this might be?<asp:Menu ID="mnuNavigation" runat="server" DataSourceID="mnuNavigationDataSource" Font-Names="Corbel" Font-Size="16pt" Orientation="Horizontal"> <StaticMenuItemStyle ForeColor="White" /> </asp:Menu> <asp:SiteMapDataSource ID="mnuNavigationDataSource" runat="server" ShowStartingNode="False" />

How to add an action to SiteManager's context menu?

How can I add an action to the context menu in "Manage Content and Structure" (sitemanager.aspx)?  I would like to be able to add a "Edit Page" action to the drop-down of pages. We have pages that contain a redirect web part, which redirects the page on load.  We need a way to get into Edit mode to change the redirect URL. Please tell me how I can do this.  Thanks.

List item custom action with custom url

Hello, Is it possible to create a listitem custom action with an url that contains {fieldname} instead of  {ItemId}, {ItemUrl}, {ListId}, {SiteUrl}, for example http://MYSPSITEURL/SitePages/custompage.aspx?Field=} ? {Title  

Remove item (Cookie) from basket (Cookie Collection)

Hi I am busy building a shopping cart with cookies. I have datalist which I populate from the cookies with a delete button next to each cookie Here is the code:public partial class Basket_Checkout : System.Web.UI.Page { //List<ProductItemObject> ProductsList = new List<ProductItemObject>(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BindList(); } } private void BindList() { dlstProducts.DataSource = null; dlstProducts.DataSource = ProductsList(); dlstProducts.DataBind(); } public List<ProductItemObject> ProductsList() { StringBuilder sb = new StringBuilder(); int loop1, loop2; HttpCookieCollection MyCookieColl; HttpCookie MyCookie; MyCookieColl = Request.Cookies; // Capture all cookie names into a string array. String[] arr1 = MyCookieColl.AllKeys; // Grab individual cookie objects by cookie name. List<ProductItemObject> CurrentBasket = new List<ProductItemObject>(); for (loop1 = 0; loop1 < arr1.Length; loop1++) { ProductItemObject item = new ProductItemObject(); MyCo

Passing value from Menu item to my sql

How do I pass the value from my menu item to my sql in the back code? Here's what I have so far. Thank you very much. <div> <asp:Menu id="Menu1" runat="server" BackColor="#CC0000" BorderColor="#CCCCCC" OnMenuItemClick="Menu1_MenuItemClick" BorderStyle="Solid" DynamicHorizontalOffset="2" Font-Bold="True" Font-Names="Tahoma" Font-Size="12pt" ForeColor="White" Height="50px" Orientation="Horizontal" StaticSubMenuIndent="10px" Width="100%"> <StaticMenuStyle BorderColor="White" BorderStyle="Solid" BorderWidth="1px" /> <StaticSelectedStyle BackColor="#FF9900" /> <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" BorderColor="White" BorderStyle="Solid" BorderWidth="3px" /> <DynamicHoverStyle BackColor="#284E98" ForeColor="White" /> <DynamicMenuStyle BackColor="#B5C7DE" /> <DynamicSelectedStyle BackColor="#507CD1" />

Remove Arrow FRom Menu

Is there a way to remove the arrow from the menu when the root item has subitems?  It would look neater if the arrow wasn't there.

Menu selected item formatting problem in mozilla

Hello, I have a problem with menu slected item. when i click on menu item it shold display in different color for that i hv wrote below code in my master page cs file. on page load.  string thispage = this.Page.AppRelativeVirtualPath; int slashpos = thispage.LastIndexOf('/');string pagename = thispage.Substring(slashpos + 1); string pagename = thispage.Substring(slashpos + 1); foreach (MenuItem mi in Menu7.Items) { if (mi.NavigateUrl.Contains(pagename)) mi.Selected = true; break; } this works fine in IE but when i run in firefox my page formatting disturbs means the content page not coming in a proper place. thanx in advance. do the needfull.         

Excecution of wait for field change in current item action

Hi everybody, I've an SharePoint designer WorkFlow with two simple actions: wait for field change in current item (wait for the aproval status was approved) update item list(set a value to a field in the current item) how immediate is the execution of an workflow like this by the WF Runtime engine?, how it works? would be possible that WF runtime engine take time to execute this tasks, how much is waranteed acording the WF architecture? The Previous question becouse this solution is composed by an smart document and a workflow: -A workflow that have to copy the aproval status  to a field when this was aproved. -The document have to detect the change on the field value(seted by the workflow) when the document is closed by the user(this action could be executed just after the user approve). In conclusion the document depends from the workflow execution to detect the change, if the workflow were not executed "immediately" document actions would not be executed when the document were closed. by the above I need to know how reliable is this workaround and make a choice, this workaround or an event handler controling the itemupdating event(synchronous event) to do the tasks made by the workflow. Suggestions are welcome! PD and Background: The smart document(with managed code) is the template associated to the content type in a document library. The Current
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend