Interface for a class DropDownTree
EmitType<Object>
Triggers when the data fetch request from the remote server fails.
EmitType<DdtBeforeOpenEventArgs>
Fires when popup opens before animation.
EmitType<Object>
Triggers when the Dropdown Tree input element gets focus-out.
Triggers when an item in a popup is selected or when the model value is changed by user.
Fires when popup close after animation completion.
EmitType<Object>
Triggers when the Dropdown Tree is created successfully.
EmitType<DdtDataBoundEventArgs>
Triggers when data source is populated in the Dropdown Tree.
EmitType<Object>
Triggers when the Dropdown Tree is destroyed successfully.
EmitType<DdtFilteringEventArgs>
Triggers on typing a character in the filter bar when the allowFiltering is enabled.
Triggers when the Dropdown Tree input element is focused.
EmitType<DdtKeyPressEventArgs>
Triggers when key press is successful. It helps to customize the operations at key press.
Fires when popup opens after animation completion.
Triggers when an item in the popup is selected by the user either with mouse/tap or with keyboard navigation.
string
| Function
Specifies the template that renders to the popup list content of the Dropdown Tree component when the data fetch request from the remote server fails.
boolean
When allowFiltering is set to true, it shows the filter bar (search text box) of the component. The filter action retrieves matched items through the filtering event based on the characters typed in the search text box. If no match is found, the value of the noRecordsTemplate property will be displayed.
boolean
Enables or disables the multi-selection of items. To select multiple items:
boolean
By default, the Dropdown Tree component fires the change event while focusing out the component. If you want to fire the change event on every value selection and remove, then disable this property.
string
Specifies the CSS classes to be added with the root and popup element of the Dropdown Tree component. that allows customization of appearance.
string
| Function
This property is used to customize the display text of the selected items in the Dropdown Tree. The given custom template is added to the input instead of the selected item text in the Dropdown Tree when the multi-selection or checkbox support is enabled.
string
Defines the value separator character in the input element when multi-selection or checkbox is enabled in the Dropdown Tree. The delimiter character is applicable only for default and delimiter visibility modes.
boolean
Specifies whether to destroy the popup or to maintain it in DOM when it is closed. When this property is set to false, then the popup will not be removed from DOM once it is closed.
boolean
Specifies whether to display or remove the untrusted HTML values in the Dropdown Tree component. If ‘enableHtmlSanitizer’ set to true, the component will sanitize any suspected untrusted strings and scripts before rendering them.
boolean
Enable or disable persisting component’s state between page reloads.
boolean
Enable or disable rendering component in right to left direction.
boolean
Specifies a value that indicates whether the Dropdown Tree component is enabled or not.
Specifies the data source and mapping fields to render Dropdown Tree items.
string
Accepts the value to be displayed as a watermark text on the filter bar.
Determines on which filter type, the component needs to be considered on search action. The TreeFilterType and its supported data types are,
TreeFilterType | Description | Supported Types |
StartsWith |
Checks whether a value begins with the specified value. |
String |
EndsWith |
Checks whether a value ends with the specified value. |
String |
Contains |
Checks whether a value contains with specified value. |
String |
The default value set to StartsWith, all the suggestion items which starts with typed characters to listed in the suggestion popup.
FloatLabelType
Specifies whether to display the floating label above the input element. Possible values are:
string
| function
| JSX.Element
Specifies the template that renders a customized footer container at the bottom of the pop-up list. By default, the footerTemplate will be null and there will be no footer container for the pop-up list.
string
| function
| JSX.Element
Specifies the template that renders a customized header container at the top of the pop-up list. By default, the headerTemplate will be null and there will be no header container for the pop-up list.
{ : }
Allows additional HTML attributes such as title, name, etc., and accepts n number of attributes in a key-value pair format.
boolean
When ignoreAccent is set to true, then it ignores the diacritic characters or accents when filtering.
boolean
When set to false, consider the case-sensitive on performing the search to find suggestions. By default, consider the casing.
string
| function
| JSX.Element
Specifies a template to render customized content for all the items. If the itemTemplate property is set, the template content overrides the displayed item text. The property accepts template string or HTML element ID holding the content.
string
Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.
Configures visibility mode for component interaction when allowMultiSelection or checkbox is enabled. Different modes are:
string
| Function
Specifies the template that renders a customized pop-up list content when there is no data available to be displayed within the pop-up.
string
Specifies a short hint that describes the expected value of the Dropdown Tree component.
string
| number
Specifies the height of the pop-up list.
string
| number
Specifies the width of the popup list. By default, the popup width sets based on the width of the Dropdown Tree element.
boolean
When set to true, the user interactions on the component will be disabled.
string
Specifies the display text for the selectAll checkbox in the pop-up.
boolean
Enables or disables the checkbox option in the Dropdown Tree component. If enabled, the Checkbox will be displayed next to the expand or collapse icon of the tree items.
boolean
Specifies whether to show or hide the clear icon in textbox.
When the clear button is clicked, value
, text
properties will be reset to null.
boolean
Specifies whether to show or hide the Dropdown button.
boolean
Specifies whether to show or hide the selectAll checkbox in the pop-up which allows you to select all the items in the pop-up.
Specifies a value that indicates whether the items are sorted in the ascending or descending order, or not sorted at all. The available types of sort order are,
None
- The items are not sorted.Ascending
- The items are sorted in the ascending order.Descending
- The items are sorted in the descending order. string
Gets or sets the display text of the selected item which maps the data text field in the component.
Configures the pop-up tree settings.
string
Specifies the display text for the unselect all checkbox in the pop-up.
string[]
Gets or sets the value of selected item(s) which maps the data value field in the component.
string
| function
| JSX.Element
Specifies the way to customize the selected values in the Dropdown Tree component based on application needs. If the valueTemplate property is set, the template content overrides the displayed item text. The property accepts [template string] (https://ej2.syncfusion.com/documentation/common/template-engine/) or HTML element ID holding the content. The context for the valueTemplate comes from the data object passed to it.
string
| number
Specifies the width of the component. By default, the component width sets based on the width of its parent container. You can also set the width in pixel values.
boolean
Defines whether to enable or disable the feature called wrap the selected items into multiple lines when the selected item’s text content exceeded the input width limit.
number
Specifies the z-index value of the pop-up element.