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

Top 5 Contributors of the Month
Post New Web Links

Disable Ribbon menu

Posted By:      Posted Date: September 30, 2010    Points: 0   Category :SharePoint

Hi, i want to disable the ribbon menú in my application. Its posible? or i need to delete it in the master page?



View Complete Post

More Related Resource Links

Enable/Disable "New Folder" ribbon menu in document library in sharepoint 2010


I am new to sharepoint 2010. I want to disable "New Folder" server ribbon menu under document library only if I am at level greater than 2 in document library. If level is <=2 "New Folder" ribbon menu should be enabled. How I should achive this enable/disable feature of existing "New Folder" menu item?    

Displaying the Server Ribbon and Site Actions Menu on Customized Search Pages Upgraded to SharePoint

Learn how to add the Site Actions menu and SharePoint Server ribbon to SharePoint Server 2007 search pages that you upgrade to SharePoint Server 2010 by using visual upgrade.

Disable Master Page Menu

Dear all, How can I disable the master page menu? The following line does not work. this.Master.findcontrol("menu1").visible=false;  Moreover, if this line is put before the function database processing (Code Behind) in the button click, would the menu bar become invisible during function database processing? I think it is different from web application and intranet application.

disable browser keys & menu functions

I ran across a few links on making an asp.net app fullscreen with javascript.    But I'd also like to keep users withing my app unless they log out.    How do you disable ctrl-esc, ctrl-c, window, selection & right mouse click?    Are there any other keys you can use to prevent a user from either copying data from a browser window or closing it?     That would also mean eliminating or suppressing the upper right hand minimize & close buttons in browser windows and the file menu.     If the code is specific to internet explorer then I'd also have to check whether their browsing from a firefox browser, unless the code would be the same for both.    

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

how to disable mouseover event of menu

hi i have a menu which i have bind with database dynamically on page load .i want that when i click on parent item of menu then only the subitem should display,mean i dont want the submenu visible on mouseover.it should be disable.should be enable only on click .i have try many logic for it but i was not sucesful please give me the proper code  

Customising the ribbon - Can't get my FlyoutAnchor menu to have controls over more than one column


Hi All,

I am a custom tab in the SharePoint 2010 ribbon. Everything is working correctly except that the controls in my FlyoutAnchor Menu are all in one column. I want them displayed in a similar fashion to the Page Layout button options. Can anyone point me in the correct direction?

Here's my code:

<Scaling Id="SharePoint.Ribbon.ContentTab.Scaling">

 <MaxSize Id="SharePoint.Ribbon.ContentTab.ContentGroup.Scaling.MaxSize" GroupId="SharePoint.Ribbon.ContentTab.ContentGroup" Size="

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!

how to disable menu mouseover event in asp.net


hi ,i want to diasble menu mouseover event .and the submenu should only be shown on clicking the parent menu.

for that i have written code as 

 protected override void Render(HtmlTextWriter writer) {


      StringBuilder stringBuilder = new StringBuilder();

       StringWriter stringWriter = new StringWriter(stringBuilder);


       HtmlTextWriter htmlWriter = new HtmlTextWriter(stringWriter);



       string html = stringBuilder.ToString();

       //html = html.Replace("onmouseover="(Menu_HoverStatic(this))"","onclick="(Menu_HoverStatic(this)""));

       html = html.Replace("onmouseover=\"Menu_HoverStatic(this)\"", "onclick=\"Menu_HoverStatic(this)\""); 





give me a correct code .

Is it possible to add our own menu to ribbon in sharepoint 2010 using server object model?(not using

Is it possible to add our own menu to ribbon in sharepoint 2010 using server object model?(not using xml file)

Ribbon enable disable when the listelement is opened



at the moment the ribbon is enabled / disabled if an item is selected or not

but i want to enable to ribbon, too if u clicked an item and opened this one item


but therefor i have to check, if im in the listview or in the itemview


but how can i check this?


right now i en/disable the button that way:


    var items = SP.ListOperation.Selection.getSelectedItems();
    var count = CountDictionary(items);

    return (count == 1);


but i need an if/else, if im in the list or in the item

WPF Ribbon's application menu alignment problem: bug or programmer error?

I'm using WPF 4's (in .NET 4) ribbon control, version 3.5.40729.1, in my application. The application menu and all sub-menu popups align as far left as possible, usually far outside the ribbon window. The expected location is that the application menu's left edge aligns with the ribbon window's left edge, and that sub-menu popups will align with the left edge of the right (usually recent items) content pane.

Here's an example screen shot illustrating the issue I'm having. Note that the left edge of this screen shot is the left edge of my monitor.

Here's a snippet of code showing the XAML of the RibbonWindow root element and the beginning of the ribbon declaration:


How to disable context menu command



Tim's blog post discusses commands in the rehosted designer.  This post has been very helpful.  Now what I'm trying to do is to customize the context menu that appears for activity designers.  I used the idea from the blog post to capture the designer's cut command PreviewCanExecute:

                <CommandBinding Command="sapv:DesignerView.CutCommand"  CanExecute="CommandBinding_CanCutExecute" PreviewCanExecute="CommandBinding_PreviewCanCutExecute"/>


private void CommandBinding_CanCutExecute(object sender, CanExecuteRoutedEventArgs e)
            //Doesn't do anything, but we need to subscribe to the CanExcute handler in order to get PreviewCanExecute handler called.

        private void CommandBinding_PreviewCanCutExecute(object sender, CanExecuteRoutedEventArgs e)

Enable/Disable "Edit" and "Check In" buttons in Ribbon

We want to enable or disable "Edit" or "check in" buttons in ribbon depending upon code run in C#. We have visited a lot of resource but mostly describes for custom buttons. We need to do this for buttons provided out of the box. Any help?

Disable sharepotin ribbon button programatically


I am able to hide ribbon button using following code




ribbon = SPRibbon.GetCurrent(this

Can I disable "Convert to XHTML" in the ribbon editing tools tab?


Is there a way to disable the "Convert to XHTML" button in the ribbon editing tools tab? 

This page only specifies how to disable source editing: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.webcontrols.richhtmlfield_members.aspx


ASP.NET Menu with jQuery Superfish

Choosing the right type of menu for a website is not easy at all. The ASP.NET Menu Control is definitely NOT a good starting point due to the horrendous markup it renders, nor is it good for SEO because of the Markup/Content ratio, neither can it be easily styled.
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