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

This partial class defines the rendering of RadToolBarDropDown.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class RadToolBarDropDown : RadToolBarItem, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IMarkableStateManager, IStateManager, INamingContainer, IXmlSerializable, IRadToolBarButtonContainer, IRadToolBarItemContainer, IControlItemContainer

Inheritance: objectControlWebControlControlItemRadToolBarItemRadToolBarDropDown...

Implements: IAttributeAccessorIComponentIControlBuilderAccessorIControlDesignerAccessorIControlItemContainerIDataBindingsAccessorIDisposableIExpressionsAccessorIMarkableStateManagerINamingContainerIParserAccessorIRadToolBarButtonContainerIRadToolBarItemContainerIStateManagerIUrlResolutionServiceIXmlSerializable...

Inherited Members RadToolBarItem.RenderContents(HtmlTextWriter)RadToolBarItem.AddAttributesToRender(HtmlTextWriter)RadToolBarItem.WriteXmlForChildren(XmlWriter, RadToolBarItemCollection)RadToolBarItem.ReadXmlForChildren(XmlReader)RadToolBarItem.TagKeyRadToolBarItem.ItemRendererRadToolBarItem.ToolBarRadToolBarItem.TextRadToolBarItem.IDRadToolBarItem.ImageUrlRadToolBarItem.HoveredImageUrlRadToolBarItem.SpriteCssClassRadToolBarItem.HoveredCssClassRadToolBarItem.ClickedCssClassRadToolBarItem.ClickedImageUrlRadToolBarItem.DisabledImageUrlRadToolBarItem.DisabledCssClassRadToolBarItem.FocusedCssClassRadToolBarItem.FocusedImageUrlRadToolBarItem.OuterCssClassRadToolBarItem.ImagePositionRadToolBarItem.EnableImageSpriteRadToolBarItem.OverFlowRadToolBarItem.ShowTextRadToolBarItem.ShowImageControlItem.GetHierarchicalIndex()ControlItem.IsChildControl(Control)ControlItem.GetAllChildren<TControlItem>()ControlItem.GetChildren<TControlItem>(Predicate<TControlItem>)ControlItem.FindChild<TControlItem>(Predicate<TControlItem>)ControlItem.DataItemControlItem.ValueControlItem.IndexControlItem.AccessKeyControlItem.TemplateControlItem.ContainerControlItem.RenderingCompatibilityControlItem.ChildrenControlItem.PropertyMappingsWebControl.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.AttributesWebControl.BackColorWebControl.BorderColorWebControl.BorderWidthWebControl.BorderStyleWebControl.ControlStyleWebControl.ControlStyleCreatedWebControl.CssClassWebControl.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.IsChildControlStateClearedControl.EnableViewStateControl.ViewStateModeControl.IsViewStateEnabledControl.NamingContainerControl.IdSeparatorControl.LoadViewStateByIDControl.PageControl.TemplateControlControl.ParentControl.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

Initializes a new instance of the RadToolBarDropDown class.

C#
public RadToolBarDropDown()

Use this constructor to create and initialize a new instance of the RadToolBarDropDown class using default values.

Example:
cs-api-definition
RadToolBarDropDown dropdown = new RadToolBarDropDown();
dropdown.Text = "Manage";
dropdown.ImageUrl = "~/ToolbarImages/Manage.gif";

RadToolBar1.Items.Add(dropdown);

Initializes a new instance of the RadToolBarDropDown class with the specified text and value data.

C#
public RadToolBarDropDown(string text, string value)
Parameters:textstring

The text of the dropdown. The Text property is set to the value of this parameter.

valuestring

The value of the dropdown.

Use this constructor to create and initialize a new instance of the RadToolBarDropDown class using the specified text and value.

Example:
cs-api-definition
RadToolBarDropDown dropdown = new RadToolBarDropDown("Manage", "ManageDropDown");

RadToolBar1.Items.Add(dropdown);

Initializes a new instance of the RadToolBarDropDown class with the specified text data.

C#
public RadToolBarDropDown(string text)
Parameters:textstring

The text of the dropdown. The Text property is set to the value of this parameter.

Use this constructor to create and initialize a new instance of the RadToolBarDropDown class using the specified text.

Example:
cs-api-definition
RadToolBarDropDown dropdown = new RadToolBarDropDown("Manage");

RadToolBar1.Items.Add(dropdown);

Properties

Gets a RadToolBarButtonCollection object that contains the child buttons of the dropdown.

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

A RadToolBarButtonCollection that contains the child buttons of the dropdown. By default the collection is empty (the dropdown has no buttons).

Implements: IRadToolBarButtonContainer.Buttons

Use the Buttons property to access the child buttons of the dropdown. You can also use the Buttons property to manage the children of the dropdown. You can add, remove or modify buttons from the Buttons collection.

Example:
cs-api-definition
manageDropDown.Buttons[0].Text = "Users";
manageDropDown.Buttons[0].ImageUrl = "~/ToolbarImages/ManageUsers.gif";

Gets or sets the height of the dropdown in pixels.

C#
[Bindable(true)]
public Unit DropDownHeight { get; set; }

Implements: IRadToolBarButtonContainer.DropDownHeight

Gets or sets the width of the dropdown in pixels.

C#
[Bindable(true)]
public Unit DropDownWidth { get; set; }

Implements: IRadToolBarButtonContainer.DropDownWidth

Gets or sets the expand direction of the drop down.

C#
public ToolBarDropDownExpandDirection ExpandDirection { get; set; }
Property Value:

The expand direction of the drop down. The default value is ToolBarDropDownExpandDirection.Down.

Example:
C#
<p>&lt;telerik:RadToolBar id="RadToolBar1" runat="server"&gt;<br />
&lt;Items&gt;<br />
&lt;telerik:RadToolBarDropDown ImageUrl="~/Img/bold.gif"
<strong>ExpandDirection="Up"</strong> Text="Bold" /&gt;<br />
&lt;/Items&gt;<br />
&lt;/telerik:RadToolBar&gt;</p>

Methods

C#
protected override ControlItemCollection CreateChildItemCollection()
Returns:

ControlItemCollection

Overrides: ControlItem.CreateChildItemCollection()

C#
protected override RadToolBarItem.RendererBase CreateRenderer()
Returns:

RadToolBarItem.RendererBase

Overrides: RadToolBarItem.CreateRenderer()

C#
protected override string GetCurrentImageUrl()
Returns:

string

Overrides: RadToolBarItem.GetCurrentImageUrl()

C#
protected override void LoadChildViewState(object viewState)
Parameters:viewStateobject

Overrides: ControlItem.LoadChildViewState(object)

C#
protected override void LoadFromDictionary(IDictionary<string, object> dictionary)
Parameters:dictionaryIDictionary<string, object>

Overrides: RadToolBarItem.LoadFromDictionary(IDictionary<string, object>)

C#
protected override void ReadXml(XmlReader reader)
Parameters:readerXmlReader

Overrides: ControlItem.ReadXml(XmlReader)

C#
protected override object SaveChildViewState()
Returns:

object

Overrides: ControlItem.SaveChildViewState()

C#
protected override void SetChildrenDirty()

Overrides: ControlItem.SetChildrenDirty()

C#
protected override void SetItemContainer(ControlItemContainer itemContainer)
Parameters:itemContainerControlItemContainer

Overrides: ControlItem.SetItemContainer(ControlItemContainer)

C#
protected override void TrackChildViewState()

Overrides: ControlItem.TrackChildViewState()

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

Overrides: ControlItem.WriteXml(XmlWriter)