New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Composite Ribbon button offering a primary action with an attached drop-down of additional button options, dynamically resolving shared images and rendering mode at runtime (with XML persistence).

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class RibbonBarSplitButton : RibbonBarMenuBaseItem, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IRibbonBarSubComponent, IXmlSerializable

Inheritance: objectControlWebControlRibbonBarItemRibbonBarClickableItemRibbonBarMenuBaseItemRibbonBarSplitButton...

Implements: IAttributeAccessorIComponentIControlBuilderAccessorIControlDesignerAccessorIDataBindingsAccessorIDisposableIExpressionsAccessorIParserAccessorIRibbonBarSubComponentIUrlResolutionServiceIXmlSerializable...

Inherited Members RibbonBarMenuBaseItem.Render(HtmlTextWriter)RibbonBarClickableItem.GetCssClass()RibbonBarClickableItem.AddAttributesToRender(HtmlTextWriter)RibbonBarClickableItem.RenderContents(HtmlTextWriter)RibbonBarClickableItem.RenderBeginTag(HtmlTextWriter)RibbonBarClickableItem.ImageUrlRibbonBarClickableItem.AccessKeyRibbonBarClickableItem.ToolTipRibbonBarClickableItem.DisabledImageUrlRibbonBarClickableItem.ImageUrlLargeRibbonBarClickableItem.DisabledImageUrlLargeRibbonBarClickableItem.SizeRibbonBarClickableItem.TextRibbonBarClickableItem.ImageAltTextRibbonBarClickableItem.QuickAccessRibbonBarClickableItem.TagKeyRibbonBarItem.ContainerRibbonBarItem.ParentRibbonBarItem.RibbonBarRibbonBarItem.GroupRibbonBarItem.RendererWebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.CreateControlStyle()WebControl.LoadViewState(object)WebControl.TrackViewState()WebControl.MergeStyle(Style)WebControl.RenderEndTag(HtmlTextWriter)WebControl.SaveViewState()WebControl.AttributesWebControl.BackColorWebControl.BorderColorWebControl.BorderWidthWebControl.BorderStyleWebControl.ControlStyleWebControl.ControlStyleCreatedWebControl.CssClassWebControl.DisabledCssClassWebControl.StyleWebControl.EnabledWebControl.EnableThemingWebControl.FontWebControl.ForeColorWebControl.HasAttributesWebControl.HeightWebControl.IsEnabledWebControl.SupportsDisabledAttributeWebControl.SkinIDWebControl.TabIndexWebControl.TagNameWebControl.WidthControl.ResolveAdapter()Control.HasEvents()Control.GetRouteUrl(object)Control.GetRouteUrl(string, object)Control.GetRouteUrl(RouteValueDictionary)Control.GetRouteUrl(string, RouteValueDictionary)Control.GetUniqueIDRelativeTo(Control)Control.ApplyStyleSheetSkin(Page)Control.OnDataBinding(EventArgs)Control.DataBind()Control.DataBind(bool)Control.DataBindChildren()Control.AddParsedSubObject(object)Control.EnsureID()Control.OnInit(EventArgs)Control.ClearChildState()Control.ClearChildControlState()Control.ClearChildViewState()Control.ClearEffectiveClientIDMode()Control.ClearCachedClientID()Control.Focus()Control.LoadControlState(object)Control.MapPathSecure(string)Control.OpenFile(string)Control.OnLoad(EventArgs)Control.OnPreRender(EventArgs)Control.BuildProfileTree(string, bool)Control.SaveControlState()Control.RenderChildren(HtmlTextWriter)Control.RenderControl(HtmlTextWriter)Control.RenderControl(HtmlTextWriter, ControlAdapter)Control.OnUnload(EventArgs)Control.Dispose()Control.RaiseBubbleEvent(object, EventArgs)Control.OnBubbleEvent(object, EventArgs)Control.AddedControl(Control, int)Control.CreateControlCollection()Control.CreateChildControls()Control.ResolveUrl(string)Control.ResolveClientUrl(string)Control.FindControl(string)Control.FindControl(string, int)Control.GetDesignModeState()Control.HasControls()Control.IsLiteralContent()Control.EnsureChildControls()Control.RemovedControl(Control)Control.SetDesignModeState(IDictionary)Control.SetRenderMethodDelegate(RenderMethod)Control.ClientIDModeControl.ClientIDControl.ClientIDSeparatorControl.ContextControl.AdapterControl.DesignModeControl.EventsControl.IDControl.IsChildControlStateClearedControl.EnableViewStateControl.ViewStateModeControl.IsViewStateEnabledControl.NamingContainerControl.IdSeparatorControl.LoadViewStateByIDControl.PageControl.RenderingCompatibilityControl.TemplateControlControl.TemplateSourceDirectoryControl.AppRelativeTemplateSourceDirectoryControl.SiteControl.VisibleControl.UniqueIDControl.HasChildViewStateControl.ControlsControl.ValidateRequestModeControl.ViewStateControl.ViewStateIgnoresCaseControl.ChildControlsCreatedControl.IsTrackingViewStateControl.DisposedControl.DataBindingControl.InitControl.LoadControl.PreRenderControl.Unloadobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public RibbonBarSplitButton()

Properties

Gets a RibbonBarButtonCollection object that contains the buttons of the SplitButton.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public RibbonBarButtonCollection Buttons { get; }
Property Value:

A RibbonBarButtonCollection that contains the buttons of the SplitButton. By default the collection is empty (SplitButton has no buttons).

Use the Buttons property to access the buttons of the SplitButton. You can also use the Buttons property to manage the buttons. You can add, remove or modify buttons.

Example:
cs-api-definition
splitButton.Buttons[0].Text = "Example";

Determines whether button selection on button click is enabled.

C#
public bool EnableButtonSelection { get; set; }
Property Value:

Boolean. The default value is false.

Use the property to enable/disable button selection. Button selection is the ability to select a button from the drop-down, which becames the default action for the Split Button.

Gets/sets the Image Rendering Mode, localy for the item.

C#
public override RibbonBarImageRenderingMode ImageRenderingMode { get; set; }
Property Value:

The value is from the enum RibbonBarImageRenderingMode. It depends of the value of ImageRenderingMode property of RadRibbonBar.

Overrides: RibbonBarClickableItem.ImageRenderingMode

In case ImageRenderingMode is not explicitly set (meaning RibbonBar's ImageRenderingMode is Auto), it's considered as follows:

  • If ImageUrl is set and ImageUrlLarge is not set - the mode is Clip;
  • Any other case - Dual.

Gets the type of the RibbonBarItem. Usefull when iterating through the Items collection of RibbonBarGroup

C#
public override RibbonBarItemType ItemType { get; }

Overrides: RibbonBarItem.ItemType

C#
public override WebControl ParentWebControl { get; }

Overrides: RibbonBarItem.ParentWebControl

Property allowing one to select a default action of the Split Button. If proper conditions are met, the text and the image of the SplitButton are also updated using the selected button.

C#
public int SelectedButtonIndex { get; set; }
Property Value:

Integer. The default value is -1.

Use the property to select a button as a default action of the Split Button.

Methods

C#
protected override IRenderer CreateControlRenderer()
Returns:

IRenderer

Overrides: RibbonBarItem.CreateControlRenderer()

Searches the RibbonBarSplitButton for the first RibbonBarMenuItem which Value property is equal to the specified value.

C#
public RibbonBarButton FindButtonByValue(string value)
Parameters:valuestring

The Value to search for.

Returns:

RibbonBarButton

A RibbonBarMenuItem whose Value property is equal to the specifed value. If a button is not found, null (Nothing in Visual Basic) is returned.

Returns all buttons with Visible=true in the Buttons collection.

C#
public IList<RibbonBarButton> GetVisibleButtons()
Returns:

IList<RibbonBarButton>

A list of RibbonBarButton objects.

C#
public void ReadXml(XmlReader reader)
Parameters:readerXmlReader
C#
protected virtual void ReadXmlForSplitButtons(XmlReader reader)
Parameters:readerXmlReader
C#
protected void WriteXml(XmlWriter writer)
Parameters:writerXmlWriter
C#
protected virtual void WriteXmlForSplitButtons(XmlWriter writer)
Parameters:writerXmlWriter