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

This class represents a single RadButton ToggleState when the RadButton control is used as custom toggle button.

Definition

Constructors

Creates a RadButton ToggleState.

C#
public ButtonToggleState()

Creates a RadButton ToggleState.

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

The Text of the ToggleState.

cssClassstring

The CssClass of the ToggleState.

valuestring

The Value of the ToggleState.

Creates a RadButton ToggleState.

C#
public ButtonToggleState(string text, string cssClass)
Parameters:textstring

The Text of the ToggleState.

cssClassstring

The CssClass of the ToggleState.

Creates a RadButton ToggleState.

C#
public ButtonToggleState(string text)
Parameters:textstring

The Text of the ToggleState.

Properties

Gets or sets an optional parameter passed to the Command event along with the associated CommandName.

C#
[Bindable(true)]
[Themeable(false)]
[ClientControlProperty]
[ClientPropertyName("commandArgument")]
public string CommandArgument { get; set; }

Gets or sets the command name associated with the Button control that is passed to the Command event.

C#
[Themeable(false)]
[ClientControlProperty]
[ClientPropertyName("commandName")]
public string CommandName { get; set; }

Gets or sets the CSS class applied to the RadButton control.

C#
public string CssClass { get; set; }

Gets or sets the height of the RadButton control.

C#
public Unit Height { get; set; }

Gets or sets the CSS class applied to the RadButton control when the mouse pointer is over the control.

C#
public string HoveredCssClass { get; set; }

Gets the object that controls the Primary and Secondary Icon related properties.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public ButtonIcon Icon { get; }

Gets the object that controls the Primary and Secondary Icon related properties.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public ButtonImage Image { get; }

Gets or sets the CSS class applied to the RadButton control when the control is pressed.

C#
public string PressedCssClass { get; set; }

Gets or sets a bool value indicating whether the ToggleState is selected or not.

C#
[Themeable(false)]
public bool Selected { get; set; }

Gets or sets the text displayed in the RadButton control.

C#
public string Text { get; set; }

Gets or sets optional Value.

C#
public string Value { get; set; }

Gets or sets the width of the RadButton control.

C#
public Unit Width { get; set; }