RadChip
The Chip is a compact element that represents an input, attribute, or action. The component enables user input and verifies that input by converting text into chips.
The component can be clicked or removed and supports various styling options. The Chip is commonly used in email templates where each chip is a single person.
For more information about the RadChip refer to the documentation and its API.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
[ToolboxBitmap(typeof(RadChip), "Toolbox.Icons.Chip.png")]
[RequiredScript(typeof(jQueryPlugins), 1)]
[RequiredScript(typeof(Html5Chip), 2)]
[RequiredScript(typeof(MaterialRipple), 3)]
[ClientScriptResource("Telerik.Web.UI.RadChip", "Telerik.Web.UI.Chip.Scripts.RadChip.kendo.js", LoadOrder = 4)]
[ClientScriptResource("Telerik.Web.UI.RadChip", "Telerik.Web.UI.Chip.Scripts.RadChip.js", LoadOrder = 5)]
[EmbeddedSkin("Chip", typeof(RadChip))]
[EmbeddedSkin("Chip", "Default", typeof(RadChip))]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Classic, typeof(RadChip))]
[RequiredCss("Telerik.Web.UI.Skins.Common.MaterialRipple.css", RenderMode.Classic, typeof(RadChip))]
public class RadChip : RadWebControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IScriptControl, IControlResolver, IPostBackDataHandler, ISkinnableControl, IControl
Inheritance: objectControlWebControlRadWebControlRadChip
Implements:
Inherited Members
Constructors
RadChip class
public RadChip()
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.
public string AvatarClass { get; set; }
Defines the client events handlers.
[PersistenceMode(PersistenceMode.InnerProperty)]
public ChipClientEvents ClientEvents { get; }
The CssClass property will now be used instead of the former Skin and will be modified in AddAttributesToRender()
protected override string CssClassFormatString { get; }
Overrides:
Returns true if ripple effect should be added
protected override bool EnableRippleEffect { get; }
Overrides:
Specifies the background and border styles of the Chip. The options are: Solid (default) or Outline.
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.
public string Icon { get; set; }
If set, value will be appended to the icon's element class attribute.
public string IconClass { get; set; }
The label text of the chip. Default is empty string.
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. Default is false.
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.
public string RemoveIcon { get; set; }
If set, value will be appended to the remove icon's element class attribute.
public string RemoveIconClass { get; set; }
Specifies the size of the chip. The options are: Small, Medium (default), Large, Full and None.
public ChipRounded Rounded { get; set; }
Sets whether the Chip can be selected. Default is false.
public bool Selectable { get; set; }
Toggles the selected state of the Chip. Default is false.
public bool Selected { get; set; }
Specifies the size of the chip. The options are: Small, Medium (default), Large and None.
public ChipSize Size { get; set; }
protected override HtmlTextWriterTag TagKey { get; }
Overrides:
Specifies the theme color of the component. The options are: Base (default), Info, Success, Warning, or Error.
public ChipThemeColor ThemeColor { get; set; }
Methods
protected override void DescribeClientEvents(IScriptDescriptor descriptor)
Overrides:
protected override void DescribeComponent(IScriptDescriptor descriptor)
Overrides:
public override void RenderClientStateField(HtmlTextWriter writer)
Overrides: