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

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

Hide context menu except workflows

Posted By:      Posted Date: September 29, 2010    Points: 0   Category :SharePoint
I have added 3 lists as 3 web parts in a page.I have to hide context menu(View Properties,Edit Properties,Alerts,Workflows,Send To,Manage Permissions,Compliance Details and Delete) except workflows only for 1 webpart for particular users.Please help me out in this regard...It's very urgent.

View Complete Post

More Related Resource Links

hide context menu of a document library such as Alert me and Send to

How to hide Alert me and Send to of the context menu of  a document library.I do not wat to do it VIA core.js.
is there any other way to do it.


Cutting Edge: Adding a Context Menu to ASP.NET Controls


Although the context menu is a common element of most desktop applications, it is still fairly uncommon in Web application names because it doesn't map well to a server-based technology like ASP. NET.

Dino Esposito

MSDN Magazine February 2005

Hide li of Ul in menu??



   is it possible to hide certain Li of an Ul and show them at certain page???


<ul class="ProfileMenu">
                                    <li><a class="linkbutton" href="<%=ResolveUrl("~/")%>Home.aspx">Home</a></li>
                                    <li><a class="linkbutton" href="<%=ResolveUrl("~/")%>RegCustomers/CEditProfile.aspx">
                                        Edit Profile</a></li>
                                    <li><a class="linkbutton" href="<%=ResolveUrl("~/")%>RegCustomers/CChangePassword.aspx">
                                        Change Password</a></li>
                                    <li><a class="linkbutton" href="<%=ResolveUrl("~/")%>RegCustomers/CChangePassword.aspx">
                                        View Purchase Detail</a></li>    

suppose i have this(above) in master page.

now when user navigate to certain page then i want to show all LI otherwise just First LI to be visible???

plz guide me..

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! 

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.

How to make context menu as non selectable when the usercontrol is active

I am having a context menu displayed when i right click on a node of a treeview. Suppose my treeview is as follows Root |->some.txt |-> Child(For some.txt) |-> Child1(child for Child) If i right click on Child1 i will have an option as AddNew. If the user selects i will show a user control form for the user displayed in a panel. What i need is if the user selects the option as Child1 and if the user control is active and when the user again right clicks

Hide top menu search bar in Sharepoint server 2010

Hi I've tryed this guide to hide the top menu search bar with Sharepoint Designer in Sharepoint server 2010 ------------------------------ Open SharePoint Designer          Open the site in SharePoint Designer   On the left navigation pane, click on “All Files” (bottom item on menu)   Click on the folder “_catalogs”   Click on the folder “masterpage”   Click on the file “v4.master” An overview will open Make sure that you have selected “Split mode” viewing          Click on “Edit file” (I hope this is correct, because I have a Dutch version)          Select “Skewer click” on the ribbon          When you click on a item, you are presented with a submenu. Select in this case, the Help-button, “a#TopHelpLink” For the Search-field, you have to select “div#s4-searcharea.s4-search s4-rp”.          In the code properties screen, on the right side, select Style          And set visibility to “hidden”   Save your master file. ------------------------------ But it dosn't work, it puts a little red line under "hidden", Like if y

how to hide site actions menu

Hey, Just wondering if anyone can help me try and hide the Site Actions menu either by using a HTML Form Web Part or changing the master page. Cheers

Is it possible to disable context menu items based on the selection on Treeview

I will have some sort of nodes for a treeview as follows Root |-> some.txt(A text file which was added at runtime) |->Child(child for some.txt) |-> child1(child for child) I designed my context menu with some options as New and Remove What i need is when i righclick on Root, child or child i would like to disable the Remove option

WPF - strange context menu behaviour



I create contextmenu using that code


 protected MenuItem itemAdd, itemDelete, itemSelectBranch, itemDeleteClasp;
  protected MenuItem itemCut, itemCopy, itemPaste, itemAddParent, itemPasteWithChildren;
  protected MenuItem itemAddTask, itemAddExtTask, itemAddMileStone;
 menu = new ContextMenu();
    itemAdd = new MenuItem
             HorizontalAlignment = HorizontalAlignment.Left,
             HorizontalContentAlignment = System.Windows.HorizontalAlignment.Stretch,
             Header = "Add"
    itemDelete = new MenuItem
               HorizontalAlignment = HorizontalAlignment.Left,
               HorizontalContentAlignment = System.Windows.HorizontalAlignment.Stretch,
               Header = "Delete"
    itemSelectBranch = new MenuItem
      HorizontalAlignment = HorizontalAlignment.Left,
      HorizontalContentAlignment = System.Windows.HorizontalAlignment.Stretch,
                  Header = 

listview with context menu

i have a listview with two groups ... and i have a context menu assigned to that listview. my problem is i dont want to display the context menu in group 2 but it should display on group1 items when i right click my mouse ... how can i do this... 

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?

Context menu in sharepoint 2010

How to hide context menu for a list in sharepoint 2010

Hide Site Actions menu for few groups on a specific aspx page.


Hi All Gurus,

I am facing a issue. I want to hide the site actions menu to few groups, which have high level permission on other pages but they dont need to access "site actions" link on only this page.

Can some one tell me a why using Javascript or some quci fix for this in SPD level.

Pls looking forward for your help...

Happy Sharepointing..


How do I get a custom context menu to show up???

Okay, I just started back working on my web browser using Visual Basic 2K8, and I want to have my custom context menu show up when the user clicks inside the browser..... This is what I have...
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim Browser As New WebBrowser
        TabControl1.TabPages.Add("New Tab")
        Browser.Name = "Web Browser"
        Browser.Dock = DockStyle.Fill
        AddHandler Browser.ProgressChanged, AddressOf Loading
        AddHandler Browser.DocumentCompleted, AddressOf Done
        Int = Int + 1
        CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate(UrlLocation.Text)
    End Sub

That is where I suspect the bit of code will have to go... Since I'm using Tab Control instead of the WebBrowser...

In UserControl, FooCmdCanExecute (context menu) not called until after a control button is clicked.


I'm seeing an odd behavior I can't explain.  I am using a 3rd party control, and while it's possible it's an issue with that control, I wanted to inquire here to see if anyone has experienced similar behavior in other instances (unrelated to my particular 3rd party control).

I created a UserControl, comprising a ComponentONE chart and several buttons.  When the UserControl is given a data source (for the chart), it programmatically creates a ContextMenu that allows the user to configure the Y view extent for each of the data series provided in the data source.  After it's created, it's set as the ContextMenu for the chart.  The UserControl is used inside a tab on the app's main window, and is also plunked directly inside another window that can be brought up.

The UserControl defines a RoutedCommand - let's say FooCmd.  When the MenuItems for the context menu are created, their Command properties are set to FooCmd.  Also, a CommandBinding in the UserControl associates FooCmdCanExecute() and FooCmdExecuted() in the control class with the command.

The buttons in the UserControl are for data navigation - e.g. , there's one that moves the chart's "viewport" to the beginning of the data, and one for the "end".  The click handlers are not complex - essentially, they just set

How to Hide the Ribbon and Site Actions Menu for Anonymous Users in SharePoint 2010?


How to Hide the Ribbon and Site Actions Menu for Anonymous Users in sharepoint2010?


any thoughts?

Thanks in Advance!

Share Knowledge and Spread Love!
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