Default Item

The DropDownList enables you to configure its default item.

The defaultItem property type has to match the data type. For example, if the data property contains a list of objects, the defaultItem has to be defined as an object with the same textField as the data items.

The following example demonstrates how to define a defaultItem as a primitive value.

Example
View Source
Change Theme:

The following example demonstrates how to define a defaultItem as an object value.

Example
View Source
Change Theme:

In this article

Not finding the help you need?