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

Kendo UI CheckBox component

Definition

Constructors

Initializes a new instance of the CheckBox class.

C#
public CheckBox(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

The checked state of the CheckBox.

C#
public bool? Checked { get; set; }

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

C#
public bool? Enabled { get; set; }

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

C#
public bool? Encoded { get; set; }

Specifies the label content for the checkbox.

C#
public string Label { get; set; }

Sets a value controlling the border radius.

C#
public Rounded? Rounded { get; set; }

Sets a value controlling the size of the component.

C#
public ComponentSize? Size { get; set; }

Methods

BuildCheckBox method.

C#
protected virtual TagBuilder BuildCheckBox()
Returns:

TagBuilder

BuildHiddenInput method.

C#
protected virtual TagBuilder BuildHiddenInput()
Returns:

TagBuilder

GetModelExplorer method.

C#
protected virtual ModelExplorer GetModelExplorer()
Returns:

ModelExplorer

GetModelMetaData method.

C#
protected virtual ModelMetadata GetModelMetaData()
Returns:

ModelMetadata

Serializes the component settings to a dictionary.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

A dictionary of settings.

Overrides: WidgetBase.Serialize()

Implements: IFormEditor.Serialize()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteHtml(TextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)