New to KendoReactLearn about KendoReact Free.

MultiSelectTreeProps

Represents the props of the KendoReact MultiSelectTree component.

NameTypeDefaultDescription

accessKey?

string

Specifies the accessKey of the MultiSelectTree.

jsx
<MultiSelectTree accessKey="m" />

adaptive?

boolean

Providing different rendering of the popup element based on the screen dimensions.

jsx
<MultiSelectTree adaptive={true} />

adaptiveTitle?

React.ReactNode

Specifies the text that is rendered as title in the adaptive popup.

jsx
<MultiSelectTree adaptiveTitle="Select items" />

ariaDescribedBy?

string

Identifies the element(s) which will describe the component, similar to HTML aria-describedby attribute. For example these elements could contain error or hint message.

jsx
<MultiSelectTree ariaDescribedBy="description" />

ariaLabelledBy?

string

Identifies the element(s) which will label the component.

jsx
<MultiSelectTree ariaLabelledBy="label" />

checkField?

string

Specifies the name of the field which will provide a Boolean representation of the checked state of the item.

jsx
<MultiSelectTree checkField="checked" />

checkIndeterminateField?

string

Specifies the name of the field which will provide a Boolean representation of the checked indeterminate state of the item.

jsx
<MultiSelectTree checkIndeterminateField="indeterminate" />

className?

string

Sets additional classes to the MultiSelectTree.

jsx
<MultiSelectTree className="custom-class" />

data?

any[]

Sets the data of the MultiSelectTree (see example).

jsx
<MultiSelectTree data={[{ text: 'Node1' }, { text: 'Node2' }]} />

dataItemKey

string

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

jsx
<MultiSelectTree dataItemKey="id" />

dir?

string

Represents the dir HTML attribute.

jsx
<MultiSelectTree dir="rtl" />

disabled?

boolean

Sets the disabled state of the MultiSelectTree.

jsx
<MultiSelectTree disabled={true} />

expandField?

string

Specifies the name of the field which will provide a Boolean representation of the expanded state of the item.

jsx
<MultiSelectTree expandField="expanded" />

fillMode?

"null" | "flat" | "solid" | "outline"

solid

Configures the fillMode of the MultiSelectTree.

The available options are:

  • solid
  • flat
  • outline
  • null—Does not set a fillMode className.
jsx
<MultiSelectTree fillMode="outline" />

filter?

string

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

jsx
<MultiSelectTree filter="search text" />

filterable?

boolean

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

jsx
<MultiSelectTree filterable={true} />

id?

string

Specifies the id of the component.

jsx
<MultiSelectTree id="multi-select-tree" />

item?

React.ComponentType<MultiSelectTreeItemProps>

Defines the component that will be used for rendering each of the MultiSelectTree items (see example).

jsx
<MultiSelectTree item={(props) => <div>{props.item.text}</div>} />

label?

string

Renders a floating label for the MultiSelectTree.

jsx
<MultiSelectTree label="Select items" />

listNoData?

React.ComponentType<MultiSelectTreeListNoDataProps>

Defines the component that will be rendered in the MultiSelectTree popup when no data is available (see example).

jsx
<MultiSelectTree listNoData={() => <div>No data available</div>} />

loading?

boolean

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

jsx
<MultiSelectTree loading={true} />

name?

string

Specifies the name property of the input DOM element.

This property is part of the FormComponentProps interface.

onBlur?

(event: MultiSelectTreeBlurEvent) => void

Fires each time the MultiSelectTree gets blurred.

jsx
<MultiSelectTree onBlur={(event) => console.log(event)} />

onCancel?

(event: MultiSelectTreeCancelEvent) => void

Fires each time the popup of the MultiSelectTree is about to cancel in (adaptive mode).

jsx
<MultiSelectTree onCancel={(event) => console.log(event)} />

onChange?

(event: MultiSelectTreeChangeEvent) => void

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

jsx
<MultiSelectTree onChange={(event) => console.log(event)} />

onClose?

(event: MultiSelectTreeCloseEvent) => void

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

jsx
<MultiSelectTree onClose={(event) => console.log(event)} />

onExpandChange?

(event: any) => void

Fires when the expanding or collapsing of an item is requested (see examples).

jsx
<MultiSelectTree onExpandChange={(event) => console.log(event)} />

onFilterChange?

(event: MultiSelectTreeFilterChangeEvent) => void

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

jsx
<MultiSelectTree onFilterChange={(event) => console.log(event)} />

onFocus?

(event: MultiSelectTreeFocusEvent) => void

Fires each time the user focuses the MultiSelectTree.

jsx
<MultiSelectTree onFocus={(event) => console.log(event)} />

onOpen?

(event: MultiSelectTreeOpenEvent) => void

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

jsx
<MultiSelectTree onOpen={(event) => console.log(event)} />

opened?

boolean

Sets the opened state of the MultiSelectTree.

jsx
<MultiSelectTree opened={true} />

placeholder?

string

The hint that is displayed when the MultiSelectTree is empty.

jsx
<MultiSelectTree placeholder="Select items" />

popupSettings?

DropDownsPopupSettings

Configures the popup of the MultiSelectTree.

jsx
<MultiSelectTree popupSettings={{ animate: true }} />

required?

boolean

Specifies if null is a valid value for the component.

This property is part of the FormComponentProps interface.

rounded?

"null" | "small" | "large" | "medium" | "full"

medium

Configures the roundness of the MultiSelectTree.

The available options are:

  • small
  • medium
  • large
  • full
  • null—Does not set a rounded className.
jsx
<MultiSelectTree rounded="full" />

size?

"null" | "small" | "large" | "medium"

medium

Configures the size of the MultiSelectTree.

The available options are:

  • small
  • medium
  • large
  • null—Does not set a size className.
jsx
<MultiSelectTree size="large" />

style?

React.CSSProperties

The styles that are applied to the MultiSelectTree.

jsx
<MultiSelectTree style={{ width: '400px' }} />

subItemsField?

string

Specifies the name of the field which will provide an array representation of the item subitems. Defaults to 'items'.

jsx
<MultiSelectTree subItemsField="children" />

tabIndex?

number

Specifies the tabIndex of the MultiSelectTree.

jsx
<MultiSelectTree tabIndex={0} />

tag?

React.ComponentType<MultiSelectTreeTagProps>

Defines the component that will be used for rendering each of the MultiSelectTree tags.

jsx
<MultiSelectTree tag={(props) => <span>{props.tagData.text}</span>} />

tags?

TagData[]

Sets the tags of the MultiSelect (see example).

jsx
<MultiSelectTree tags={[{ text: 'Tag1' }, { text: 'Tag2' }]} />

textField

string

Sets the data item field that represents the item text (see example).

jsx
<MultiSelectTree textField="name" />

valid?

boolean

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

This property is part of the FormComponentProps interface.

validationMessage?

string

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

This property is part of the FormComponentProps interface.

validityStyles?

boolean

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

This property is part of the FormComponentProps interface.

value?

any[]

Sets the value of the MultiSelectTree. It can either be of the primitive (string, numbers) or of the complex (objects) type.

jsx
<MultiSelectTree value={['Node1']} />

valueMap?

(value: any[]) => any

Represents a callback function, which returns the value for submitting. The returned value will be rendered in an option of a hidden select element.

jsx
<MultiSelectTree valueMap={value => value && value.id} />
Not finding the help you need?
Contact Support