ComboBoxProps

Represents the props of the KendoReact ComboBox component.

allowCustom? boolean

Specifies whether the ComboBox allows user-defined values that are not present in the dataset (see example). Defaults to false.

className? string

Sets additional classes to the ComboBox.

clearButton? boolean

If clearButton is set to true, the ComboBox renders a button on hovering over the component. Clicking this button resets the value of the ComboBox to undefined and triggers the change event.

data? any[]

Sets the data of the ComboBox (more information and examples).

dataItemKey? string

Sets the key for comparing the data items of the ComboBox. If dataItemKey is not set, the ComboBox compares the items by reference (see example).

defaultValue? any

Sets the default value of the ComboBox. Similar to the native select HTML element.

dir? string

Represents the dir HTML attribute.

disabled? boolean

Sets the disabled state of the ComboBox.

filter? string | null

Sets the value of ComboBox input. Useful for making the ComboBox input a controlled component.

filterable? boolean

Enables the filtering functionality of the ComboBox (more information and examples).

Sets the footer component of the ComboBox (see example).

header? React.ReactNode

Sets the header component of the ComboBox (see example).

iconClassName? string

Sets CSS classes to the expand icon DOM element.

itemRender? (li: ReactElement<HTMLLIElement>, itemProps: ListItemProps) => React.ReactNode

Fires when a ComboBox list item is about to be rendered (see example). Used to override the default appearance of the list items.

label? string

Renders a floating label for the ComboBox.

listNoDataRender? (element: ReactElement<HTMLDivElement>) => React.ReactNode

Fires when the element which indicates no data in the popup is about to be rendered. Used to override the default appearance of the element.

loading? boolean

Sets the loading state of the ComboBox (see example).

name? string

Specifies the name property of the input DOM element.

For runnable examples on forms support, refer to the documentation of the respective form component:

onBlur? (event: ComboBoxBlurEvent) => void

Fires each time the ComboBox gets blurred.

onChange? (event: ComboBoxChangeEvent) => void

Fires each time the value of the ComboBox is about to change (see examples).

onClose? (event: ComboBoxCloseEvent) => void

Fires each time the popup of the ComboBox is about to close.

onFilterChange? (event: ComboBoxFilterChangeEvent) => void

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

onFocus? (event: ComboBoxFocusEvent) => void

Fires each time the user focuses the ComboBox.

onOpen? (event: ComboBoxOpenEvent) => void

Fires each time the popup of the ComboBox is about to open.

onPageChange? (event: ComboBoxPageChangeEvent) => void

Fires when both the virtual scrolling of the ComboBox is enabled and the component requires data for another page (more information and examples).

opened? boolean

Sets the opened and closed state of the ComboBox.

placeholder? string

The hint that is displayed when the ComboBox is empty.

popupSettings? DropDownsPopupSettings

Configures the popup of the ComboBox.

required? boolean

Specifies if null is a valid value for the component.

For runnable examples on forms support, refer to the documentation of the respective form component:

style? CSSProperties

The styles that are applied to the ComboBox.

suggest? boolean

Enables the auto-completion of the text based on the first data item (see example).

tabIndex? number

Specifies the tabIndex of the ComboBox.

textField? string

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

valid? boolean

Overrides the validity state of the component. If valid is set, the required property will be ignored.

For runnable examples on forms support, refer to the documentation of the respective form component:

validationMessage? string

Controls the form error message of the component. If set to an empty string, no error will be thrown.

For runnable examples on forms support, refer to the documentation of the respective form component:

validityStyles? boolean

If set to false, no visual representation of the invalid state of the component will be applied.

For runnable examples on forms support, refer to the documentation of the respective form component:

value? any

Sets the value of the ComboBox (more information and examples). It can either be of the primitive (string, numbers) or of the complex (objects) type.

virtual? VirtualizationSettings

Configures the virtual scrolling of the ComboBox (more information and examples).

 /