All Components

MultiSelectComponent

Represents the Kendo UI MultiSelect component for Angular.

@Component({
selector: 'my-app',
template: `
 <kendo-multiselect [data]="listItems">
 </kendo-multiselect>
`
})
class AppComponent {
  public listItems: Array<string> = ["Item 1", "Item 2", "Item 3", "Item 4"];
}

Selector

kendo-multiselect

Accessible in templates as #kendoMultiSelectInstance="kendoMultiSelect"

Inputs

clearButton boolean

Unless this options is set to false, a button will appear when hovering over the component. Clicking that button resets the component value to an empty array and triggers the change event.

disabled boolean

Sets the disabled state of the component.

filterable boolean

Enables the filtering functionality of the MultiSelect.

tabIndex number

Specifies the tabIndex of the component.

textField string

Sets the data item field that represents the item text. If the data contains only primitive values, do not define it.

valueField string

Sets the data item field that represents the item value. If the data contains only primitive values, do not define it.

valuePrimitive boolean

Specifies the type of the selected value. If set to true, the selected value has to be of the primitive type.

For more details, refer to the section on the valuePrimitive property.

data any[]

Sets the data of the MultiSelect.

The data has to be provided in an array of items.

placeholder string

The hint displayed when the component is empty. Will not be displayed when values are selected.

popupSettings PopupSettings

Configures the popup of the MultiSelect.

The available options are:

  • animation: Boolean—Controls the popup animation. By default, the open and close animations are enabled.
  • width: Number—Sets the width of the popup container. By default, the width of the host element is used.
  • height: Number—Sets the height of the popup container. By default, the height is 200px.
  • popupClass: String—Specifies a list of CSS classes that are used to style the popup.

value any[]

Sets the value of the MultiSelect. It could be either of the primitive (string, numbers) or of the complex (objects) type. Use the valuePrimitive option to define the type.

Selected values that are not present in the source are ignored.

Fields

isOpen boolean

Returns the current open state of the popup.

Events

close EventEmitter

Fires each time the popup is about to close.
This event is preventable. If you cancel the event, the popup will remain opened.

filterChange EventEmitter

Fires each time the user types in the filter input. You can filter the source based on the passed filtration value.

open EventEmitter

Fires each time the popup is about to open.
This event is preventable. If you cancel the event, the popup will remain closed.

valueChange EventEmitter

Fires each time the value is changed.

For more details, refer to the section on the valueChange event.

Methods

toggle

Toggles the visibility of the popup. If you use the toggle method to open or close the popup, the open and close events will not be fired.

Parameters

open boolean

The state of the popup.

In this article