ClassTelerikMultiSelect<TItem, TValue>
The class for the Telerik MultiSelect component.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Type Parameters:
TItem
TValue
Syntax:
public class TelerikMultiSelect<TItem, TValue> : TelerikSelectBase<TItem, List<TValue>>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IPopupContainer
Inheritance: objectComponentBaseBaseComponentDataBoundComponent<TItem>TelerikSelectBase<TItem, List<TValue>>TelerikMultiSelect<TItem, TValue>
Implements:
Inherited Members
Constructors
TelerikMultiSelect()
Declaration
public TelerikMultiSelect()
Properties
AriaDescribedBy
Defines the aria-describedby attribute for the component. The default value of the attribute points to the selected tag list. By defining the aria-describedby, you are responsible for building the relationship between the input multiselect and the taglist.
Declaration
[Parameter]
public override string AriaDescribedBy { get; set; }
Property Value
Overrides
AutoClose
Controls whether to close the component suggestion list on item selection.
DebounceDelay
Time in ms between the last typed symbol and the firing of the internal oninput event. Default is 150ms.
FilterOperator
Defines the filter operator. Default value is StringFilterOperator.StartsWith.
Declaration
[Parameter]
public StringFilterOperator FilterOperator { get; set; }
Property Value
ItemTemplate
Defines the item template of the list items.
Declaration
[Parameter]
public RenderFragment<TItem> ItemTemplate { get; set; }
Property Value
RenderFragment<TItem>
LoaderShowDelay
The delay after which the loader in the suggestion list will be displayed.
Declaration
[Parameter]
public int LoaderShowDelay { get; set; }
Property Value
MaxAllowedTags
Controls the number of selected items that will be displayed independently. Items selected beyond this number will appear in the SummaryTag.
Declaration
[Parameter]
public int? MaxAllowedTags { get; set; }
Property Value
int?
MinLength
Defines minimum number of characters in the input before suggestions are displayed. Default value is 0.
MultiSelectPrefixTemplate
The content of the MultiSelect prefix.
Declaration
[Parameter]
public RenderFragment MultiSelectPrefixTemplate { get; set; }
Property Value
MultiSelectSettings
Defines a renderfragment that contains all settings for the autocomplete. MultiSelectPopupSettings.
Declaration
[Parameter]
public RenderFragment MultiSelectSettings { get; set; }
Property Value
MultiSelectSuffixTemplate
The content of the MultiSelect suffix.
Declaration
[Parameter]
public RenderFragment MultiSelectSuffixTemplate { get; set; }
Property Value
OnClose
Defines the OnClose Event which is fired before the suggestion list of the AutoComplete is closed.
Declaration
[Parameter]
public EventCallback<MultiSelectCloseEventArgs> OnClose { get; set; }
Property Value
OnItemRender
Fires each time an item in dropdown renders. Use the event to add a custom CSS class to each dropdown item based on its value.
Declaration
[Parameter]
public Action<MultiSelectItemRenderEventArgs<TItem>> OnItemRender { get; set; }
Property Value
Action<MultiSelectItemRenderEventArgs<TItem>>
OnOpen
Defines the OnOpen Event which is fired before the suggestion list of the AutoComplete is opened.
Declaration
[Parameter]
public EventCallback<MultiSelectOpenEventArgs> OnOpen { get; set; }
Property Value
OnRead
Fires when the data source is read. Use this to attach your own filtering logic. Once attached, you must implement all such data source operations here, the Component will no longer perform them for you.
Declaration
[Parameter]
public EventCallback<MultiSelectReadEventArgs> OnRead { get; set; }
Property Value
PersistFilterOnSelect
Defines whether the filter value will be preserved when selecting. Applicable when filtering is enabled and AutoClose is set to false.
Declaration
[Parameter]
public bool PersistFilterOnSelect { get; set; }
Property Value
Placeholder
The hint that is shown if no there is no value.
Declaration
[Parameter]
public string Placeholder { get; set; }
Property Value
ShowArrowButton
Defines whether to render an arrow button for opening the MultiSelect.
Declaration
[Parameter]
public bool ShowArrowButton { get; set; }
Property Value
ShowClearButton
Defines whether to render a clear button in the MultiSelect. Clear Button is displayed on hover when the MultiSelect has value.
Declaration
[Parameter]
public bool ShowClearButton { get; set; }
Property Value
ShowPrefixSeparator
Defines whether the prefix separator should be shown. The default value is true.
Declaration
[Parameter]
public bool ShowPrefixSeparator { get; set; }
Property Value
ShowSuffixSeparator
Defines whether the suffix separator should be shown. The default value is true.
Declaration
[Parameter]
public bool ShowSuffixSeparator { get; set; }
Property Value
TagMode
Controls the tag mode of the component.
Declaration
[Parameter]
public MultiSelectTagMode TagMode { get; set; }
Property Value
TagTemplate
Defines the rendering of the selected items' tags(chips).
Declaration
[Parameter]
public RenderFragment<TItem> TagTemplate { get; set; }
Property Value
RenderFragment<TItem>
TextField
Defines the TextField of the Data. Default value: "Text".
Declaration
[Parameter]
public override string TextField { get; set; }
Property Value
Overrides
ValueMapper
A callback function that returns an item that corresponds to the argument value. Used in VirtualScrollingn combined with OnRead to facilitate pre-selection of items that are not currently loaded.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides