There's a possibility to hide Form's Ribbon button in crm by java script.
But i cant hide Home page Ribbon button.
Is there any ways to hide home page ribbon button using java script?
Thanks in advance
Because some comments are lost in a removed answer, I rewrite here.
Ribbon customization (also the one inside the homepage) must be done editing the XML definition, not by DOM manipulation of the element.
More information here:
Define Ribbon Display Rules
and here:
Define Ribbon Enable Rules
Is also suggested to use a ribbon editor, like this one:
Ribbon Workbench for Dynamics CRM 2011
Visual Ribbon Editor is also a very good tool.
You can download it from here:
Visual Ribbon Editor
To edit the ribbon manually, have look at this article.
Related
Is it possible to add tabs to a Dynamics CRM 2011 form? I'm not talking about the "tabs" that are basically vertical sections on the form, which you can click the links on the navigation portion of the form to jump to.
I want a real tabbed interface like the screenshot below. Something like the jQuery tabs plugin
If that is possible, is it possible to programmatically ( using javascript/xrm perhaps? ) select which tab to set to be active/show?
By default there is no way to do that. This tab system was retired in CRM 2011, in CRM 4 all forms had tabs like that.
The only way to do that is through Web Resources (HTML or Silverlight) but you have to add manually the controls and databinding also. Searching if exist any sample to follow i found this article take a look.
I've an Office plug-in implemented in C++.
Depends on the context and logic of my plug-in, I would like to enable/disable some existing UI elements of Office (menu, ribbon, context menu, and for old Office CommandBars).
Please help or point me out to resources how to do so (C# or VBA resources also appreciated).
A couple of things to get rid of the main offenders (Ribbon, Command Bar) in Excel VBA.
Show and hide Ribbon interface:
Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)"
Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",True)"
Show and hide command bars in older versions of Excel.
1) Show hide ribbon items:
You cannot set the enabled state or toggle the visibility of built in ribbon controls, this functionailty is reserved for inner workings of MS Office - more
The reverse is true, in that you can set enabled state or toggle the visibility of your custom ribbon items.
And likewise the users will be prevented from changing this via the Customize Ribbon interface:
myTabName.Groups[0].Items[0].Enabled = false;
myTabName.Groups[0].Items[1].Visible = false;
2) In terms of command bars, Office context menus, you can perform any customizations such as changing enabled and visibility states and adding your own.
You can also change the command bar properties based on a condition - example
3) For a complete list customizations you can and can't do in the ribbon have a look at these two articales:
Office UI Customization - Comparison of UI Features and Can I customize the ribbon
So with the new Ribbon on top of the SharePoint 2010 page we have an office like feel to working with SharePoint pages. Customization of this ribbon is great, adding your own functionality augmenting what Microsoft provides out of the box. My question is this though, when is it appropriate to use ribbon customization vs an item menu option (i.e. the callout menu on a particular item).
Are there best practices around this? What do you do?
They share a lot of the same options. The ribbon is focused on working with the entire list or library, but still has options pop up when you click on an item that are targeted at that one item. The call-out on a single item is always focused on options for just that item.
So I would say if your looking to do something with an entire list or library, put it in the ribbon. If it is going to be an option specifically tied to one item at a time, put it in the call-out menu, but also try to make it show up in the ribbon if someone doesn't look at the call-out menu.
But that's just my opinion and I haven't had any experience putting custom functionality into either sections.
[Possible Duplicate]
Disable Ribbon Button
But I came with question, as I'm this question not answered and I'm looking for available server side solution.
I wonder if there is a way to disable button or many buttons from Ribbon toolbar from server side?
Using Ribbon.TrimById Method (String) you can locate Ribbon, RibbonButton or RibbonGroup to hide.
Complete sample to hide Ribbon buttons sharepoint 2010 programmatically.
I think you will want to look into the HideCustomAction option of the Feature Framework. http://msdn.microsoft.com/en-us/library/ms414790.aspx
It has the ability to hide some aspects of the default UI elements in the product and the documentation does talk about the Ribbon so it may do what you want.
How can I completely change the look of the TopNavigation dropdowns in SharePoint 2007?
Basically I need to change the look of the div popup that gets display. I need to use Javascript to do this, so just changing the CSS for the menus won't work.
Grab a copy of the MossMenu code the MS team released, implement and override the render with your own code. Peasy
Telerik has a few pages that show you how to use their controls instead of the the dropdown menu in MOSS. The directions start here http://www.telerik.com/help/aspnet-ajax/moss-overview.html
Please take a look at Heather Solomon's Blog for MOSS 2007 CSS reference. You will most likely get want you want out of that.