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

Defines the fluent API for configuring SwitchMessagesSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class SwitchMessagesSettingsBuilder

Inheritance: objectSwitchMessagesSettingsBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

SwitchMessagesSettingsBuilder method.

C#
public SwitchMessagesSettingsBuilder(SwitchMessagesSettings container)
Parameters:containerSwitchMessagesSettings

Properties

Gets the settings being configured.

C#
protected SwitchMessagesSettings Container { get; }

Methods

The label for the checked state of the Switch.

C#
public SwitchMessagesSettingsBuilder Checked(string value)
Parameters:valuestring

The value for Checked

Returns:

SwitchMessagesSettingsBuilder

Returns the current SwitchMessagesSettingsBuilder instance.

Example:
C#
@(Html.Kendo().Switch()
.Name("switch")
.Messages(m => m.Checked("Yes"))
)

The label for the unchecked state of the Switch.

C#
public SwitchMessagesSettingsBuilder Unchecked(string value)
Parameters:valuestring

The value for Unchecked

Returns:

SwitchMessagesSettingsBuilder

Returns the current SwitchMessagesSettingsBuilder instance.

Example:
C#
@(Html.Kendo().Switch()
.Name("switch")
.Messages(m => m.Unchecked("No"))
)