CheckBox
Class
Kendo UI CheckBox component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
C#
public class CheckBox : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent, IFormEditor
Inheritance: objectWidgetBaseCheckBox
Implements:
Inherited Members
Constructors
Initializes a new instance of the CheckBox class.
C#
public CheckBox(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
Properties
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; }
Sets a value controlling the size of the component.
C#
public ComponentSize? Size { get; set; }
Methods
C#
public override IDictionary<string, object> Serialize()
Overrides:
Implements:
Writes the HTML.
C#
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
C#
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: