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

Defines the fluent API for configuring the Kendo CheckBox for ASP.NET MVC.

Definition

Constructors

Initializes a new instance of the CheckBox class.

C#
public CheckBoxBuilder(CheckBox component)
Parameters:componentCheckBox

The component.

Methods

The checked state of the CheckBox.

C#
public CheckBoxBuilder Checked(bool value)
Parameters:valuebool

The value that configures the checked.

Returns:

CheckBoxBuilder

If set to false, the CheckBox will be disabled and will not allow the user to change its checked state.

C#
public CheckBoxBuilder Enable(bool value)
Parameters:valuebool

The value that configures the enabled.

Returns:

CheckBoxBuilder

Example:
C#
@(Html.Kendo().CheckBox()
.Name("CheckBox")
.Enable(true)
)

Determines whether the checkbox label content should be rendered as an HTML string or it should be encoded.

C#
public CheckBoxBuilder Encoded(bool value)
Parameters:valuebool

The value that configures the encoded.

Returns:

CheckBoxBuilder

Configures the client-side events.

C#
public CheckBoxBuilder Events(Action<CheckBoxEventBuilder> configurator)
Parameters:configuratorAction<CheckBoxEventBuilder>

The client events action.

Returns:

CheckBoxBuilder

Example:
C#
@(Html.Kendo().CheckBox()
.Name("CheckBox")
.Events(events =&gt; events
.Change("onChange")
)
)

Specifies the label content for the checkbox.

C#
public CheckBoxBuilder Label(string value)
Parameters:valuestring

The value that configures the label.

Returns:

CheckBoxBuilder

Sets a value controlling the border radius.

C#
public CheckBoxBuilder Rounded(Rounded value)
Parameters:valueRounded

The value that configures the rounded.

Returns:

CheckBoxBuilder

Sets a value controlling the size of the component.

C#
public CheckBoxBuilder Size(ComponentSize value)
Parameters:valueComponentSize

The value that configures the size.

Returns:

CheckBoxBuilder