New to Telerik UI for ASP.NET MVC? 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, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContext

The view context

initializerIJavaScriptInitializer

The JavaScriptInitializer

urlGeneratorIUrlGenerator

The URL generator.

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

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

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Implements: IFormEditor.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The HtmlTextWriter.

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

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

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)