<kendo:dropDownList>

A JSP wrapper for Kendo UI DropDownList.

Configuration Attributes

animation boolean

Configures the opening and closing animations of the suggestion popup. Setting the animation option to false will disable the opening and closing animations. As a result the suggestion popup will open and close instantly. is not a valid configuration. Further configuration is available via kendo:dropDownList-animation.

Example

<kendo:dropDownList animation="animation">
</kendo:dropDownList>

autoBind boolean

Controls whether to bind the widget to the data source on initialization.

Example

<kendo:dropDownList autoBind="autoBind">
</kendo:dropDownList>

autoWidth boolean

If set to true, the widget automatically adjusts the width of the popup element and does not wrap up the item label.

Example

<kendo:dropDownList autoWidth="autoWidth">
</kendo:dropDownList>

cascadeFrom java.lang.String

Use it to set the Id of the parent DropDownList widget.Help topic showing how cascading functionality works

Example

<kendo:dropDownList cascadeFrom="cascadeFrom">
</kendo:dropDownList>

cascadeFromField java.lang.String

Defines the field to be used to filter the data source. If not defined the parent's dataValueField option will be used.Help topic showing how cascading functionality works

Example

<kendo:dropDownList cascadeFromField="cascadeFromField">
</kendo:dropDownList>

dataTextField java.lang.String

The field of the data item that provides the text content of the list items. The widget will filter the data source based on this field.

Example

<kendo:dropDownList dataTextField="dataTextField">
</kendo:dropDownList>

dataValueField java.lang.String

The field of the data item that provides the value of the widget.

Example

<kendo:dropDownList dataValueField="dataValueField">
</kendo:dropDownList>

delay float

Specifies the delay in milliseconds before the search-text typed by the end user is cleared.

Example

<kendo:dropDownList delay="delay">
</kendo:dropDownList>

enable boolean

If set to false the widget will be disabled and will not allow user input. The widget is enabled by default and allows user input.

Example

<kendo:dropDownList enable="enable">
</kendo:dropDownList>

enforceMinLength boolean

If set to true the widget will not show all items when the text of the search input cleared. By default the widget shows all items when the text of the search input is cleared. Works in conjunction with minLength.

Example

<kendo:dropDownList enforceMinLength="enforceMinLength">
</kendo:dropDownList>

filter java.lang.String

The filtering method used to determine the suggestions for the current value. Filtration is turned off by default, and can be performed over string values only (either the widget's data has to be an array of strings, or over the field, configured in the dataTextField option). The supported filter values are startswith, endswith and contains.

Example

<kendo:dropDownList filter="filter">
</kendo:dropDownList>

fixedGroupTemplate java.lang.String

The template used to render the fixed header group. By default the widget displays only the value of the current group.

Example

<kendo:dropDownList fixedGroupTemplate="fixedGroupTemplate">
</kendo:dropDownList>

footerTemplate java.lang.String

The template used to render the footer template. The footer template receives the widget itself as a part of the data argument. Use the widget fields directly in the template.

Example

<kendo:dropDownList footerTemplate="footerTemplate">
</kendo:dropDownList>

groupTemplate java.lang.String

The template used to render the groups. By default the widget displays only the value of the group.

Example

<kendo:dropDownList groupTemplate="groupTemplate">
</kendo:dropDownList>

headerTemplate java.lang.String

Specifies a static HTML content, which will be rendered as a header of the popup element.

Example

<kendo:dropDownList headerTemplate="headerTemplate">
</kendo:dropDownList>

height float

The height of the suggestion popup in pixels. The default value is 200 pixels.

Example

<kendo:dropDownList height="height">
</kendo:dropDownList>

ignoreCase boolean

If set to false case-sensitive search will be performed to find suggestions. The widget performs case-insensitive searching by default.

Example

<kendo:dropDownList ignoreCase="ignoreCase">
</kendo:dropDownList>

index float

The index of the initially selected item. The index is 0 based.

Example

<kendo:dropDownList index="index">
</kendo:dropDownList>

minLength float

The minimum number of characters the user must type before a filter is performed. Set to higher value than 1 if the search could match a lot of items.

Example

<kendo:dropDownList minLength="minLength">
</kendo:dropDownList>

noDataTemplate java.lang.String

The template used to render the "no data" template, which will be displayed if no results are found or the underlying data source is empty. The noData template receives the widget itself as a part of the data argument. The template will be evaluated on every widget data bound.

Example

<kendo:dropDownList noDataTemplate="noDataTemplate">
</kendo:dropDownList>

optionLabel java.lang.Object

Define the text of the default empty item. If the value is an object, then the widget will use it as a valid data item. Note that the optionLabel will not be available if the widget is empty.

Example

<kendo:dropDownList optionLabel="optionLabel">
</kendo:dropDownList>

optionLabelTemplate java.lang.String

The template used to render the option label.

Example

<kendo:dropDownList optionLabelTemplate="optionLabelTemplate">
</kendo:dropDownList>

template java.lang.String

The template used to render the items. By default the widget displays only the text of the data item (configured via dataTextField).

Example

<kendo:dropDownList template="template">
</kendo:dropDownList>

text java.lang.String

The text of the widget used when the autoBind is set to false.

Example

<kendo:dropDownList text="text">
</kendo:dropDownList>

value java.lang.String

The value of the widget.

Example

<kendo:dropDownList value="value">
</kendo:dropDownList>

valuePrimitive boolean

Specifies the value binding behavior for the widget when the initial model value is null. If set to true, the View-Model field will be updated with the selected item value field. If set to false, the View-Model field will be updated with the selected item.

Example

<kendo:dropDownList valuePrimitive="valuePrimitive">
</kendo:dropDownList>

valueTemplate java.lang.String

The valueTemplate used to render the selected value. By default the widget displays only the text of the data item (configured via dataTextField).

Example

<kendo:dropDownList valueTemplate="valueTemplate">
</kendo:dropDownList>

virtual boolean

Enables the virtualization feature of the widget. The configuration can be set on an object, which contains two properties - itemHeight and valueMapper.For detailed information, refer to the article on virtualization. Further configuration is available via kendo:dropDownList-virtual.

Example

<kendo:dropDownList virtual="virtual">
</kendo:dropDownList>

Configuration JSP Tags

kendo:dropDownList-animation

Configures the opening and closing animations of the suggestion popup. Setting the animation option to false will disable the opening and closing animations. As a result the suggestion popup will open and close instantly. is not a valid configuration.

More documentation is available at kendo:dropDownList-animation.

Example

<kendo:dropDownList>
    <kendo:dropDownList-animation></kendo:dropDownList-animation>
</kendo:dropDownList>

kendo:dropDownList-popup

The options that will be used for the popup initialization. For more details about the available options refer to Popup documentation.

More documentation is available at kendo:dropDownList-popup.

Example

<kendo:dropDownList>
    <kendo:dropDownList-popup></kendo:dropDownList-popup>
</kendo:dropDownList>

kendo:dropDownList-virtual

Enables the virtualization feature of the widget. The configuration can be set on an object, which contains two properties - itemHeight and valueMapper.For detailed information, refer to the article on virtualization.

More documentation is available at kendo:dropDownList-virtual.

Example

<kendo:dropDownList>
    <kendo:dropDownList-virtual></kendo:dropDownList-virtual>
</kendo:dropDownList>

Event Attributes

change String

Fired when the value of the widget is changed by the user. As of 2015 Q3 SP1 cascading widget will trigger change event when its value is changed due to parent update.The event handler function context (available via the this keyword) will be set to the widget instance.

For additional information check the change event documentation.

Example

<kendo:dropDownList change="handle_change">
</kendo:dropDownList>
<script>
    function handle_change(e) {
        // Code to handle the change event.
    }
</script>

close String

Fired when the popup of the widget is closed.The event handler function context (available via the this keyword) will be set to the widget instance.

For additional information check the close event documentation.

Example

<kendo:dropDownList close="handle_close">
</kendo:dropDownList>
<script>
    function handle_close(e) {
        // Code to handle the close event.
    }
</script>

dataBound String

Fired when the widget is bound to data from its data source.The event handler function context (available via the this keyword) will be set to the widget instance.

For additional information check the dataBound event documentation.

Example

<kendo:dropDownList dataBound="handle_dataBound">
</kendo:dropDownList>
<script>
    function handle_dataBound(e) {
        // Code to handle the dataBound event.
    }
</script>

filtering String

Fired when the widget is about to filter the data source.The event handler function context (available via the this keyword) will be set to the widget instance.

For additional information check the filtering event documentation.

Example

<kendo:dropDownList filtering="handle_filtering">
</kendo:dropDownList>
<script>
    function handle_filtering(e) {
        // Code to handle the filtering event.
    }
</script>

open String

Fired when the popup of the widget is opened by the user.The event handler function context (available via the this keyword) will be set to the widget instance.

For additional information check the open event documentation.

Example

<kendo:dropDownList open="handle_open">
</kendo:dropDownList>
<script>
    function handle_open(e) {
        // Code to handle the open event.
    }
</script>

select String

Fired when an item from the popup is selected by the user either with mouse/tap or with keyboard navigation.

For additional information check the select event documentation.

Example

<kendo:dropDownList select="handle_select">
</kendo:dropDownList>
<script>
    function handle_select(e) {
        // Code to handle the select event.
    }
</script>

cascade String

Fired when the value of the widget is changed via API or user interaction.

For additional information check the cascade event documentation.

Example

<kendo:dropDownList cascade="handle_cascade">
</kendo:dropDownList>
<script>
    function handle_cascade(e) {
        // Code to handle the cascade event.
    }
</script>

Event Tags

kendo:dropDownList-change

Fired when the value of the widget is changed by the user. As of 2015 Q3 SP1 cascading widget will trigger change event when its value is changed due to parent update.The event handler function context (available via the this keyword) will be set to the widget instance.

For additional information check the change event documentation.

Example

<kendo:dropDownList>
    <kendo:dropDownList-change>
        <script>
            function(e) {
                // Code to handle the change event.
            }
        </script>
    </kendo:dropDownList-change>
</kendo:dropDownList>

kendo:dropDownList-close

Fired when the popup of the widget is closed.The event handler function context (available via the this keyword) will be set to the widget instance.

For additional information check the close event documentation.

Example

<kendo:dropDownList>
    <kendo:dropDownList-close>
        <script>
            function(e) {
                // Code to handle the close event.
            }
        </script>
    </kendo:dropDownList-close>
</kendo:dropDownList>

kendo:dropDownList-dataBound

Fired when the widget is bound to data from its data source.The event handler function context (available via the this keyword) will be set to the widget instance.

For additional information check the dataBound event documentation.

Example

<kendo:dropDownList>
    <kendo:dropDownList-dataBound>
        <script>
            function(e) {
                // Code to handle the dataBound event.
            }
        </script>
    </kendo:dropDownList-dataBound>
</kendo:dropDownList>

kendo:dropDownList-filtering

Fired when the widget is about to filter the data source.The event handler function context (available via the this keyword) will be set to the widget instance.

For additional information check the filtering event documentation.

Example

<kendo:dropDownList>
    <kendo:dropDownList-filtering>
        <script>
            function(e) {
                // Code to handle the filtering event.
            }
        </script>
    </kendo:dropDownList-filtering>
</kendo:dropDownList>

kendo:dropDownList-open

Fired when the popup of the widget is opened by the user.The event handler function context (available via the this keyword) will be set to the widget instance.

For additional information check the open event documentation.

Example

<kendo:dropDownList>
    <kendo:dropDownList-open>
        <script>
            function(e) {
                // Code to handle the open event.
            }
        </script>
    </kendo:dropDownList-open>
</kendo:dropDownList>

kendo:dropDownList-select

Fired when an item from the popup is selected by the user either with mouse/tap or with keyboard navigation.

For additional information check the select event documentation.

Example

<kendo:dropDownList>
    <kendo:dropDownList-select>
        <script>
            function(e) {
                // Code to handle the select event.
            }
        </script>
    </kendo:dropDownList-select>
</kendo:dropDownList>

kendo:dropDownList-cascade

Fired when the value of the widget is changed via API or user interaction.

For additional information check the cascade event documentation.

Example

<kendo:dropDownList>
    <kendo:dropDownList-cascade>
        <script>
            function(e) {
                // Code to handle the cascade event.
            }
        </script>
    </kendo:dropDownList-cascade>
</kendo:dropDownList>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy