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

Chip

Class

Kendo UI Chip component

Definition

Constructors

Initializes a new instance of the Chip class.

C#
public Chip(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContext

The view context

initializerIJavaScriptInitializer

The JavaScriptInitializer

urlGeneratorIUrlGenerator

The URL generator.

Properties

If set, value will be appended to the icon's element class attribute. It also appends "k-chip avatar" and "k-avatar" classes to the icon's element.

C#
public string AvatarClass { get; set; }

Toggles the enabled state of the Chip.

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

Sets a value controlling how the color is applied.

C#
public ChipFillMode? FillMode { get; set; }

Defines the name for an existing icon in a Kendo UI theme or SVG content. The icon is rendered inside the chip by a span.k-icon or span.k-svg-icon element.See web font icons help article for more details on Kendo UI icons.

C#
public string Icon { get; set; }

If set, value will be appended to the icon's element class attribute.

C#
public string IconClass { get; set; }

The label text of the chip. Default is empty string.

C#
public string Label { get; set; }

Specifies if the Chip will be removable or not. If the property is set to true, the Chip renders a remove icon.

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

Defines the name for an existing icon in a Kendo UI theme or SVG content for the remove button when removable=true. The icon is rendered inside the chip by a span.k-icon or span.k-svg-icon element.See web font icons help article for more details on Kendo UI icons.

C#
public string RemoveIcon { get; set; }

If set, value will be appended to the remove icon's element class attribute.

C#
public string RemoveIconClass { get; set; }

Sets a value controlling the border radius.

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

Sets whether the Chip can be selected.

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

Toggles the selected state of the Chip.

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

Sets the size of the component.

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

Sets the color of the component according to the applied theme.

C#
public ChipThemeColor? ThemeColor { get; set; }

Methods

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

IDictionary<string, object>

Overrides: WidgetBase.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)