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

Represents an editor dropdown tool that renders as a custom dropdown in the editor.

Definition

Constructors

C#
public EditorDropDown()
C#
[SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public EditorDropDown(EditorTool tool)
Parameters:toolEditorTool
C#
public EditorDropDown(EditorToolStrip tool)
Parameters:toolEditorToolStrip
C#
public EditorDropDown(string name)
Parameters:namestring

Properties

Gets the CSS class applied to the anchor element representing this tool.

C#
protected override string AnchorCssClass { get; }

Overrides: EditorTool.AnchorCssClass

Gets the custom attributes which will be serialized on the client. If no custom attribute collection was supplied, falls back to the base implementation.

C#
public override AttributeCollection Attributes { get; }

Overrides: EditorToolBase.Attributes

Gets the collection of dropdown items.

C#
[PersistenceMode(PersistenceMode.InnerDefaultProperty)]
public virtual EditorDropDownItemCollection Items { get; }
Property Value:

The items contained in the dropdown.

Gets the renderer responsible for rendering this tool in the editor UI.

C#
protected override IEditorToolRenderer Renderer { get; }

Overrides: EditorTool.Renderer

Gets a value indicating whether the tool text should be displayed. Always true for dropdowns.

C#
public override bool ShowText { get; }

Overrides: EditorTool.ShowText

Gets or sets the width of the dropdown. When not explicitly set, attempts to read the value from the "width" entry in Attributes.

C#
public virtual Unit Width { get; set; }

If the value cannot be parsed as a Unit, the default is Empty. Assigning a non-empty value also updates Attributes["width"].