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 RadButtonToggleState()

Creates a RadButton ToggleState.

C#
public RadButtonToggleState(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 RadButtonToggleState(string text, string cssClass)
Parameters:textstring

The Text of the ToggleState.

cssClassstring

The CssClass of the ToggleState.

Creates a RadButton ToggleState.

C#
public RadButtonToggleState(string text)
Parameters:textstring

The Text of the ToggleState.

Properties

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 or sets the location of an image to display in the RadButton control, when the mouse pointer is over the control.

C#
[Bindable(true)]
public string HoveredImageUrl { get; set; }

Gets or sets the location of an image to display in the RadButton control.

C#
[Bindable(true)]
public string ImageUrl { get; set; }

Gets or sets a bool value indicating how the Image is used - i.e. as a background image or as an Image Button.

C#
public bool IsBackgroundImage { get; set; }

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 the location of an image to display in the RadButton control, when the control is pressed.

C#
[Bindable(true)]
public string PressedImageUrl { get; set; }

Gets or sets the URL to the image showed when the Primary Icon is hovered.

C#
[Bindable(true)]
public string PrimaryHoveredIconUrl { get; set; }

Gets or sets the bottom edge of the Primary Icon, relative to the RadButton control's wrapper element.

C#
public Unit PrimaryIconBottom { get; set; }

Gets or sets the CSS class applied to the Primary Icon.

C#
public string PrimaryIconCssClass { get; set; }

Gets or sets the Height of the Primary Icon.

C#
public Unit PrimaryIconHeight { get; set; }

Gets or sets the left edge of the Primary Icon, relative to the RadButton control's wrapper element.

C#
public Unit PrimaryIconLeft { get; set; }

Gets or sets the right edge of the Primary Icon, relative to the RadButton control's wrapper element.

C#
public Unit PrimaryIconRight { get; set; }

Gets or sets the top edge of the Primary Icon, relative to the RadButton control's wrapper element.

C#
public Unit PrimaryIconTop { get; set; }

Gets or sets the URL to the image used as Primary Icon.

C#
[Bindable(true)]
public string PrimaryIconUrl { get; set; }

Gets or sets the Width of the Primary Icon.

C#
public Unit PrimaryIconWidth { get; set; }

Gets or sets the URL to the image showed when the Primary Icon is pressed.

C#
[Bindable(true)]
public string PrimaryPressedIconUrl { get; set; }

Gets or sets the URL to the image showed when the Secondary Icon is hovered.

C#
[Bindable(true)]
public string SecondaryHoveredIconUrl { get; set; }

Gets or sets the bottom edge of the Secondary Icon, relative to the RadButton control's wrapper element.

C#
public Unit SecondaryIconBottom { get; set; }

Gets or sets the CSS class applied to the Secondary Icon.

C#
public string SecondaryIconCssClass { get; set; }

Gets or sets the Height of the Secondary Icon.

C#
public Unit SecondaryIconHeight { get; set; }

Gets or sets the left edge of the Secondary Icon, relative to the RadButton control's wrapper element.

C#
public Unit SecondaryIconLeft { get; set; }

Gets or sets the right edge of the Secondary Icon, relative to the RadButton control's wrapper element.

C#
public Unit SecondaryIconRight { get; set; }

Gets or sets the top edge of the Secondary Icon, relative to the RadButton control's wrapper element.

C#
public Unit SecondaryIconTop { get; set; }

Gets or sets the URL to the image used as Secondary Icon.

C#
[Bindable(true)]
public string SecondaryIconUrl { get; set; }

Gets or sets the Width of the Secondary Icon.

C#
public Unit SecondaryIconWidth { get; set; }

Gets or sets the URL to the image showed when the Secondary Icon is pressed.

C#
[Bindable(true)]
public string SecondaryPressedIconUrl { 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; }