MultiSelect
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class MultiSelect : ListBase, IWidget, IHtmlAttributesContainer, IScriptableComponent, IFormEditor
Inheritance: objectWidgetBaseListBaseMultiSelect
Implements:
Inherited Members
Constructors
public MultiSelect(ViewContext viewContext, IJavaScriptInitializer initializer, ViewDataDictionary viewData, IUrlGenerator urlGenerator, string fieldName = "")
Properties
public bool? Checkboxes { get; set; }
public bool? ClearButton { get; set; }
public string DataValueField { get; set; }
Sets a value controlling how the color is applied.
public FillMode? FillMode { get; set; }
public bool? HighlightFirst { get; set; }
Defines the "inputmode" attribute of the inner <input /> element. The attribute specifies the type of on-screen keyboard displayed when the user focuses the input.
public string InputMode { get; set; }
public string ItemTemplate { get; set; }
public string ItemTemplateHandler { get; set; }
public string ItemTemplateId { get; set; }
public int? MaxSelectedItems { get; set; }
public MultiSelectMessagesSettings Messages { get; set; }
public string Placeholder { get; set; }
public PrefixOptionsSettings PrefixOptions { get; set; }
Sets the size of the component.
public ComponentSize? Size { get; set; }
public SuffixOptionsSettings SuffixOptions { get; set; }
When set to a number, the tag list switches to a summarized display once the number of selected items reaches or exceeds that threshold. The first summarizeAfter items are rendered as individual tags, and the remaining items are collapsed into a single overflow chip showing the count (e.g. "+5 item(s) selected"). When set to null (the default), all selected items are always rendered as individual tags unless tagMode is set to "single".
public double? SummarizeAfter { get; set; }
public string TagTemplate { get; set; }
public string TagTemplateHandler { get; set; }
public string TagTemplateId { get; set; }
public IEnumerable Value { get; set; }
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Implements:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The writer.
Overrides: