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

HtmlBuilder for the CheckBox component

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class CheckBoxHtmlBuilder

Inheritance: objectCheckBoxHtmlBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the CheckBoxHtmlBuilder class.

C#
public CheckBoxHtmlBuilder(CheckBox component)
Parameters:componentCheckBox

The CheckBox component.

Methods

Adds attributes for event handlers

C#
protected virtual void AddEventAttributes(IHtmlNode html, IDictionary<string, object> events)
Parameters:htmlIHtmlNode

The HtmlElement of the component

eventsIDictionary<string, object>

Dictionary<TKey, TValue> of events

Builds the CheckBox markup.

C#
public IEnumerable<IHtmlNode> Build()
Returns:

IEnumerable<IHtmlNode>

HtmlElement

Create the HTML element for the component

C#
protected virtual IEnumerable<IHtmlNode> CreateElement()
Returns:

IEnumerable<IHtmlNode>

HtmlElement