SwitchMessagesSettingsBuilder

Methods

Checked(System.String)

The label for the checked state of the Switch.

Parameters

value - System.String

The value for Checked

RETURNS

Returns the current SwitchMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().Switch()
                   .Name("switch")
                   .Messages(m => m.Checked("Yes"))
            )
             

Unchecked(System.String)

The label for the unchecked state of the Switch.

Parameters

value - System.String

The value for Unchecked

RETURNS

Returns the current SwitchMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().Switch()
                   .Name("switch")
                   .Messages(m => m.Unchecked("No"))
            )