RibbonMRUSplitButton

Represents a RibbonMRUSplitButton control in the SharePoint Server Ribbon. MRU refers to "Most Recently Used".
SharePoint 2010 Ribbon MRUSplitButton

Inheritance Hierarchy


Assembly: QASPRibbon.dll
Namespace: QASPRibbon.Controls

Properties

Property Type Description
Id String A string that identifies the MRU split button, such as "RibbonControl". (Inherited from RibbonElement)
Title String A string value representing the MRU split button's label. (Inherited from RibbonElement)
Visible Boolean A value that indicates whether a MRU split button control is rendered on the ribbon. (Inherited from RibbonVisualControl)
Enabled Boolean A value that indicates whether a MRU split button control is enabled. (Inherited from RibbonVisualControl)
ToolTip RibbonToolTip The tooltip of the MRU split button. (Inherited from RibbonVisualControl)
Alt String An alternative text that is used for the combo box.
CacheMenuVersions Boolean A value that indicates whether constructed versions of a dynamic menu is stored to use in next time. The default is False.
PopulateDynamically Boolean A value that indicates whether a menu will be created dynamically (True) or not (False). The default is False.
PopulateOnlyOnce Boolean A value that indicates whether a dynamic menu will be populated only the first time that it is accessed. The default is False.
OnClientActivate String Client-side script that executes when a MRU split button control is activated.
OnClientStateCheck String Client-side script that executes before checking combo box is enabled or not.
OnClientClick String Client-side script that executes when a button's Click event is raised.
OnClientMenuClose String Client-side script that executes when menu is closed.

Constructors

public RibbonMRUSplitButton()

public RibbonMRUSplitButton(string id)

public RibbonMRUSplitButton(string id, string title)

Example

The following example defines a MRU split button control with tooltip.
//ToolTip
var simpleMRUSplitButtonToolTip = new RibbonToolTip("ToolTip Title", "ToolTip Description");
//MRUSplitButton
var simpleMRUSplitButton = new RibbonMRUSplitButton("MRU", "MRU")
    {
        ToolTip = simpleMRUSplitButtonToolTip,
        Image = RibbonImageDefinition.Standard(9, 3),
        InitialItem = "Action1",
        Sections = new []
        {
            new RibbonMenuSection("RootSection", "Section")
            {
                DisplayMode = RibbonMenuDisplayMode.Menu32,
                Controls = new RibbonControl[]
                {
                    new RibbonButton("Action1", "Default action")
                    {
                        Image = RibbonImageDefinition.Standard(5, 7)
                    },
                    new RibbonButton("Action2", "Action")
                    {
                        Image = RibbonImageDefinition.Standard(9, 7)
                    },
                    new RibbonButton("Action3", "Action")
                    {
                        Image = RibbonImageDefinition.Standard(7, 7)
                    }
                }
            }
        }
    };

See also




Last edited Dec 24, 2012 at 11:05 AM by VitalyZhukov, version 3

Comments

No comments yet.