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

Abstract base for interactive (clickable) Ribbon items that can render text, images, sizes and participate in Quick Access / sizing logic through shared renderer infrastructure.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public abstract class RibbonBarClickableItem : RibbonBarItem, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IRibbonBarSubComponent

Inheritance: objectControlWebControlRibbonBarItemRibbonBarClickableItem

Derived Classes: RibbonBarButtonRibbonBarMenuBaseItem

Implements: IAttributeAccessorIComponentIControlBuilderAccessorIControlDesignerAccessorIDataBindingsAccessorIDisposableIExpressionsAccessorIParserAccessorIRibbonBarSubComponentIUrlResolutionService...

Inherited Members RibbonBarItem.CreateControlRenderer()RibbonBarItem.ContainerRibbonBarItem.ParentRibbonBarItem.RibbonBarRibbonBarItem.ParentWebControlRibbonBarItem.GroupRibbonBarItem.RendererRibbonBarItem.ItemTypeWebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.CreateControlStyle()WebControl.LoadViewState(object)WebControl.TrackViewState()WebControl.MergeStyle(Style)WebControl.Render(HtmlTextWriter)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#
protected RibbonBarClickableItem()

Properties

C#
public override string AccessKey { get; set; }

Overrides: WebControl.AccessKey

Gets or sets the small (or in Clip ImageRenderingMode both small and large) disabled image's URL of a certain item.

C#
public string DisabledImageUrl { get; set; }
Property Value:

The URL to the image. The default value is empty string.

Use the DisabledImageUrl property to specify a custom image that will be used when the item has Size = RibbonBarItemSize.Small or RibbonBarItemSize.Medium, when in Dual mode and all sizes in Clip mode and at the same time disabled.

Gets or sets the large image's URL of a certain item for disabled state.

C#
public string DisabledImageUrlLarge { get; set; }
Property Value:

The URL to the image. The default value is empty string.

Use the DisabledImageUrlLarge property to specify a custom image that will be used when the item has Size = RibbonBarItemSize.Large and is disabled.

Gets or sets the rendered alt text of the item's image dom element.

C#
public string ImageAltText { get; set; }
Property Value:

alt text of an item's image. The default value is empty string.

Use the property to set the alt text for the item's image element, when needed for accessibility.

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

C#
[ClientPersistedProperty]
public virtual RibbonBarImageRenderingMode ImageRenderingMode { get; set; }
Property Value:

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

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 or sets the small (or in Clip ImageRenderingMode both small and large) image's URL of a certain item.

C#
[ClientPersistedProperty]
public string ImageUrl { get; set; }
Property Value:

The URL to the image. The default value is empty string.

Use the ImageUrl property to specify a custom image that will be used when the item has Size = RibbonBarItemSize.Small or RibbonBarItemSize.Medium, when in Dual mode and all sizes in Clip mode.

Gets or sets the large image's URL of a certain item.

C#
[ClientPersistedProperty]
public string ImageUrlLarge { get; set; }
Property Value:

The URL to the image. The default value is empty string.

Use the ImageUrlLarge property to specify a custom image that will be used when the item has Size = RibbonBarItemSize.Large.

C#
public RibbonBarItemQuickAccess QuickAccess { get; set; }

Gets or sets the size of a certain item. This property is used to determine a combination of Text, ImageUrl and ImageUrlLarge which should be displayed at initial load of the RibbonBar for a specific item.

C#
[ClientPersistedProperty]
public virtual RibbonBarItemSize Size { get; set; }
Property Value:

The value is from the enum RibbonBarItemSize. The default value is RibbonBarItemSize.Small.

Use the Size property to specify the item's initial size:

  • For small icon - RibbonBarItemSize.Small;
  • For small icon with text - RibbonBarItemSize.Medium;
  • For large icon with text - RibbonBarItemSize.Large.
C#
protected override HtmlTextWriterTag TagKey { get; }

Overrides: WebControl.TagKey

Gets or sets the text of a certain item.

C#
public string Text { get; set; }
Property Value:

The text of an item. The default value is empty string.

Use the property to set the displayed text for an item.

Gets or sets the tooltip of a certain item.

C#
public override string ToolTip { get; set; }
Property Value:

The text displayed in the RibbonbBar's enhanced ToolTip. The default value is empty string.

Overrides: WebControl.ToolTip

When the ToolTip value is empty, the default ASP ToolTip is displayed with the Text of the item as a value. When ToolTip is set, the enhanced RibbonBar tooltip is shown instead of the default one.

Methods

C#
protected override void AddAttributesToRender(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: WebControl.AddAttributesToRender(HtmlTextWriter)

C#
protected virtual string GetCssClass()
Returns:

string

C#
public override void RenderBeginTag(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: WebControl.RenderBeginTag(HtmlTextWriter)

C#
protected override void RenderContents(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: WebControl.RenderContents(HtmlTextWriter)