animation: Object
Animations to be used for opening/closing the popup. Setting to false will turn of the animation.
close: Object
Animation to be used for closing of the popup.

Example

//dropdownlist initialization
 <script>
     $("#dropdownlist").kendoDropDownList({
         dataSource: dataSource,
         animation: {
            close: {
                effects: "fadeOut",
                duration: 300,
                hide: true
                show: false
            }
         }
     });
 </script>
open: Object
Animation to be used for opening of the popup.

Example

//dropdownlist initialization
 <script>
     $("#dropdownlist").kendoDropDownList({
         dataSource: dataSource,
         animation: {
            open: {
                effects: "fadeIn",
                duration: 300,
                show: true
            }
         }
     });
 </script>
autoBind: Boolean(default: true)
Controls whether to bind the widget on initialization.

Example

$("#dropdownlist").kendoDropDownList({
    autoBind: false
});
dataSource: kendo.data.DataSource | Object
Instance of DataSource or the data that the DropDownList will be bound to.

Example

// bind to local data
var items = [ { Id: 0, Title: "Manager" }, { Id: 1, Title: "Developer" }, { Id: 2, Title: "Vice President" } ];
$("#dropdownlist").kendoDropDownList({
    dataSource: items,
    dataTextField: "Title",
    dataValueField: "Id"
});

Example

$("#dropdownlist").kendoDropDownList({
    dataSource: {
        transport: {
            read: "titles.json"
        }
    },
    dataTextField: "Title",
    dataValueField: "Id"
});
dataTextField: String(default: "")
Sets the field of the data item that provides the text content of the list items.

Example

var items = [ { Id: 0, Title: "Manager" }, { Id: 1, Title: "Developer" }, { Id: 2, Title: "Vice President" } ];
$("#dropdownlist").kendoDropDownList({
    dataSource: items,
    dataTextField: "Title",
    dataValueField: "Id"
});
dataValueField: String(default: "")
Sets the field of the data item that provides the value content of the list items.

Example

var items = [ { Id: 0, Title: "Manager" }, { Id: 1, Title: "Developer" }, { Id: 2, Title: "Vice President" } ];
$("#dropdownlist").kendoDropDownList({
    dataSource: items,
    dataTextField: "Title",
    dataValueField: "Id"
});
delay: Number(default: 500)
Specifies the delay in ms before the search text typed by the end user is cleared.

Example

$("#dropdownlist").kendoDropDownList({
    delay: 1000 // wait 1 second before clearing the user input
});
enable: Boolean(default: true)
Controls whether the DropDownList should be initially enabled.

Example

$("#dropdownlist").kendoDropDownList({
    enabled: false // dropdown list will not be enabled
});

Example

// get a reference to the dropdown list
var dropdownlist = $("#dropdownlist").data("kendoDropDownList");
// disable the dropdown
dropdownlist.enable(false);
height: Number(default: 200)
Define the height of the drop-down list in pixels.

Example

$("#dropdownlist").kendoDropDownList({
    height: 400
});
ignoreCase: String(default: true)
Controls whether the search should be case sensitive.

Example

$("#dropdownlist").kendoDropDownList({
    ignoreCase: false //now search will be case sensitive
});
index: Number(default: 0)
Defines the initial selected item.

Example

$("#dropdownlist").kendoDropDownList({
    index: 1 // selects the second item in the dropdown list
});
optionLabel: String | Object(default: "")
Define the text of the default empty item. If the value is an object, then the widget will use it directly.

Example

$("#dropdownlist").kendoDropDownList({
    optionLabel: "Select An Option"
});

Example

$("#dropdownlist").kendoDropDownList({
    dataTextField: "text",
    dataValueField: "value",
    optionLabel: {
       text: "Select An Option",
       value: ""
    }
});
template: String
Template to be used for rendering the items in the list.

Example

//template
<script id="template" type="text/x-kendo-tmpl">
      # if (data.BoxArt.SmallUrl) { #
          <img src="${ data.BoxArt.SmallUrl }" alt="${ data.Name }" />Title:${ data.Name }, Year: ${ data.Name }
      # } else { #
          <img alt="${ data.Name }" />Title:${ data.Name }, Year: ${ data.Name }
      # } #
 </script>

 //dropdownlist initialization
 <script>
     $("#dropdownlist").kendoDropDownList({
         dataSource: dataSource,
         dataTextField: "Name",
         dataValueField: "Id",
         template: kendo.template($("#template").html())
     });
 </script>
text: String(default: "")
Define the text of the widget, when the autoBind is set to false.

Example

$("#dropdownlist").kendoDropDownList({
     autoBind: false,
     text: "Chai"
});
value: String(default: "")
Define the value of the widget

Example

$("#dropdownlist").kendoDropDownList({
     dataSource: ["Item1", "Item2"],
     value: "Item1"
});