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

Kendo UI CheckBox TagHelper CheckBoxTagHelper class.

Definition

Constructors

Initializes a new instance of the CheckBoxTagHelper class.

C#
public CheckBoxTagHelper(IKendoHtmlGenerator generator)
Parameters:generatorIKendoHtmlGenerator

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; }

An expression to be evaluated against the current model.

C#
public ModelExpression For { get; set; }

Specifies the label content for the checkbox.

C#
public string Label { get; set; }

The name of the JavaScript function that will handle the change event. Fires when the checked state of the CheckBox is changed through user interaction.

C#
public string OnChange { 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

Gets the initialization script.

C#
protected override string GetInitializationScript()
Returns:

string

The initialization script.

Overrides: TagHelperBase.GetInitializationScript()

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelper.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

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

IDictionary<string, object>

Overrides: TagHelperBase.Serialize()

SerializeEvents method.

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

Dictionary<string, object>

Overrides: TagHelperBase.SerializeEvents()

SerializeSettings method.

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

Dictionary<string, object>

Overrides: TagHelperBase.SerializeSettings()

Writes the HTML output.

C#
protected override void WriteHtml(TagHelperOutput output)
Parameters:outputTagHelperOutput

The TagHelper output.

Overrides: TagHelperBase.WriteHtml(TagHelperOutput)