Default Item
The DropDownList enables you to configure its default item.
The
defaultItem
property type has to match the data type. For example, if thedata
property contains a list of objects, thedefaultItem
has to be defined as an object with the sametextField
as the data items.
The following example demonstrates how to define a defaultItem
as a primitive value.
The following example demonstrates how to define a defaultItem
as an object value.