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

Represents a custom command item in a RadDock control.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class DockCommand

Inheritance: objectDockCommand

Derived Classes: DockCloseCommandDockToggleCommand

Inherited Members object.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 DockCommand class.

C#
public DockCommand()

Properties

Gets or sets a value indicating whether a postback to the server automatically occurs when the user drags the RadDock control.

C#
public virtual bool AutoPostBack { get; set; }

Specifies the name of the type of the client object, which will be instantiated when the command is initialized for the first time.

C#
[ClientPropertyName("clientTypeName")]
public virtual string ClientTypeName { get; set; }

Gets or sets the Cascading Style Sheet (CSS) class rendered by the Command item on the client.

C#
public virtual string CssClass { get; set; }

Specifies the name of the command. The value of this property is used to determine on the server which command was clicked on the client.

C#
public virtual string Name { get; set; }

Gets or sets the client-side script that executes when the Command event is raised on the client.

C#
[ClientPropertyName("command")]
public virtual string OnClientCommand { get; set; }

Get ot set the the shortcut key that executes the command

C#
[ClientPropertyName("shortCut")]
public virtual string ShortCut { get; set; }

Specifies the text, which will be displayed as tooltip when the user hovers the mouse cursor over the command button.

C#
public virtual string Text { get; set; }

Methods

Creates an HtmlAnchor control with applied CssClass and Title.

C#
public virtual Control CreateElement()
Returns:

Control

An HtmlAnchor control.