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

Defines the fluent API for configuring the Kendo Chip for ASP.NET MVC.

Definition

Constructors

Initializes a new instance of the Chip class.

C#
public ChipBuilder(Chip component)
Parameters:componentChip

The component.

Methods

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 ChipBuilder AvatarClass(string value)
Parameters:valuestring

The value that configures the avatarclass.

Returns:

ChipBuilder

Toggles the enabled state of the Chip.

C#
public ChipBuilder Enabled(bool value)
Parameters:valuebool

The value that configures the enabled.

Returns:

ChipBuilder

Configures the client-side events.

C#
public ChipBuilder Events(Action<ChipEventBuilder> configurator)
Parameters:configuratorAction<ChipEventBuilder>

The client events action.

Returns:

ChipBuilder

Example:
C#
@(Html.Kendo().Chip()
.Name("Chip")
.Events(events =&gt; events
.Click("onClick")
)
)

Sets a value controlling how the color is applied.

C#
public ChipBuilder FillMode(ChipFillMode value)
Parameters:valueChipFillMode

The value that configures the fillmode.

Returns:

ChipBuilder

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 ChipBuilder Icon(string value)
Parameters:valuestring

The value that configures the icon.

Returns:

ChipBuilder

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

C#
public ChipBuilder IconClass(string value)
Parameters:valuestring

The value that configures the iconclass.

Returns:

ChipBuilder

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

C#
public ChipBuilder Label(string value)
Parameters:valuestring

The value that configures the label.

Returns:

ChipBuilder

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

C#
public ChipBuilder Removable(bool value)
Parameters:valuebool

The value that configures the removable.

Returns:

ChipBuilder

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 ChipBuilder RemoveIcon(string value)
Parameters:valuestring

The value that configures the removeicon.

Returns:

ChipBuilder

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

C#
public ChipBuilder RemoveIconClass(string value)
Parameters:valuestring

The value that configures the removeiconclass.

Returns:

ChipBuilder

Sets a value controlling the border radius.

C#
public ChipBuilder Rounded(Rounded value)
Parameters:valueRounded

The value that configures the rounded.

Returns:

ChipBuilder

Sets whether the Chip can be selected.

C#
public ChipBuilder Selectable(bool value)
Parameters:valuebool

The value that configures the selectable.

Returns:

ChipBuilder

Toggles the selected state of the Chip.

C#
public ChipBuilder Selected(bool value)
Parameters:valuebool

The value that configures the selected.

Returns:

ChipBuilder

Sets the size of the component.

C#
public ChipBuilder Size(ComponentSize value)
Parameters:valueComponentSize

The value that configures the size.

Returns:

ChipBuilder

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

C#
public ChipBuilder ThemeColor(ChipThemeColor value)
Parameters:valueChipThemeColor

The value that configures the themecolor.

Returns:

ChipBuilder