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

Displays categorized selectable gallery items (with optional expansion) and supports XML serialization plus configurable layout and item text positioning.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

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

Inheritance: objectControlWebControlRibbonBarItemRibbonBarGallery

Implements: IAttributeAccessorIComponentIControlBuilderAccessorIControlDesignerAccessorIDataBindingsAccessorIDisposableIExpressionsAccessorIParserAccessorIRibbonBarSubComponentIUrlResolutionServiceIXmlSerializable...

Inherited Members RibbonBarItem.ContainerRibbonBarItem.ParentRibbonBarItem.RibbonBarRibbonBarItem.ParentWebControlRibbonBarItem.GroupRibbonBarItem.RendererWebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.CreateControlStyle()WebControl.LoadViewState(object)WebControl.TrackViewState()WebControl.MergeStyle(Style)WebControl.Render(HtmlTextWriter)WebControl.RenderBeginTag(HtmlTextWriter)WebControl.RenderEndTag(HtmlTextWriter)WebControl.SaveViewState()WebControl.AccessKeyWebControl.AttributesWebControl.BackColorWebControl.BorderColorWebControl.BorderWidthWebControl.BorderStyleWebControl.ControlStyleWebControl.ControlStyleCreatedWebControl.CssClassWebControl.DisabledCssClassWebControl.StyleWebControl.EnabledWebControl.EnableThemingWebControl.FontWebControl.ForeColorWebControl.HasAttributesWebControl.HeightWebControl.IsEnabledWebControl.SupportsDisabledAttributeWebControl.SkinIDWebControl.TabIndexWebControl.TagNameWebControl.ToolTipWebControl.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 RibbonBarGallery()

Properties

Gets a RibbonBarGalleryCategoryCollection object that contains the categories of the Gallery.

C#
[PersistenceMode(PersistenceMode.InnerDefaultProperty)]
public RibbonBarGalleryCategoryCollection Categories { get; }
Property Value:

A RibbonBarGalleryCategoryCollection that contains the categories of the Gallery. By default the collection is empty (the Gallery has no categories).

Use the Categories property to access the categories of the Gallery. You can also use the Categories property to manage the categories. You can add, remove or modify categories from the Categories collection.

Gets or sets the number of columns in the gallery.

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

The the number of columns in the gallery. The default value is 5.

Use the property to set the number of columns in the gallery. The Columns property will determine the width of the Gallery.

Gets or sets the commandName of the gallery.

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

The commandName of the gallery. The default value is empty string.

Use the property to set commandName of the gallery. The CommandName will be passed as an argument when the gallery raises an event.

Gets or sets the number of columns in the expanded gallery.

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

The the number of columns in the expanded gallery. The default value is 5.

Use the property to set the number of columns in the expanded gallery. The ExpandedColumns property will determine the width of the Gallery when it is expanded.

Gets or sets the height of the gallery when expanedd.

C#
public Unit ExpandedHeight { get; set; }

Gets or sets the height of each RibbonBarGalleryItem in pixels.

C#
public Unit ItemHeight { get; set; }

Gets or sets the position of the item text relative to its image.

C#
[ClientPersistedProperty]
public RibbonBarGalleryItemTextPosition ItemTextPosition { get; set; }
Property Value:

The value is from the enum RibbonBarGalleryItemTextPosition. The default value is RibbonBarGalleryItemTextPosition.Bottom.

Use the ItemTextPosition property to specify the item's text position:

  • Below the image - RibbonBarGalleryItemTextPosition.Bottom;
  • Next to the image - RibbonBarGalleryItemTextPosition.Inline;
  • Not visible - RibbonBarGalleryItemTextPosition.None.

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

C#
public override RibbonBarItemType ItemType { get; }

Overrides: RibbonBarItem.ItemType

Gets or sets the width of each RibbonBarGalleryItem in pixels.

C#
public Unit ItemWidth { get; set; }

Gets the selected gallery item of the RibbonBarGallery control.

C#
[Browsable(false)]
public RibbonBarGalleryItem SelectedItem { get; }
Property Value:

The gallery item that should be selected.

C#
protected override HtmlTextWriterTag TagKey { get; }

Overrides: WebControl.TagKey

Methods

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

Overrides: WebControl.AddAttributesToRender(HtmlTextWriter)

Clears the selection. The Selected property of all items is set to false.

C#
public void ClearSelection()
C#
protected override IRenderer CreateControlRenderer()
Returns:

IRenderer

Overrides: RibbonBarItem.CreateControlRenderer()

C#
public void ReadXml(XmlReader reader)
Parameters:readerXmlReader
C#
protected void ReadXmlForCategories(XmlReader reader)
Parameters:readerXmlReader
C#
protected override void RenderContents(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: WebControl.RenderContents(HtmlTextWriter)

C#
protected void WriteXml(XmlWriter writer)
Parameters:writerXmlWriter
C#
protected virtual void WriteXmlForListItems(XmlWriter writer)
Parameters:writerXmlWriter