Skip to content

Commit d0ae1b9

Browse files
docs(dropDownList): add supported value types
1 parent 85afda7 commit d0ae1b9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

components/dropdownlist/overview.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,15 @@ The DropDownList provides the following features:
8989
* `TabIndex` - the `tabindex` attribute rendered on the dropdown.
9090
* `TextField` - the name of the field from the model that will be shown to the user. Defaults to `Text`.
9191
* `ValueField` - the name of the field from the model that will be the underlying `value`. Defaults to `Value`.
92-
* `Value` and `bind-Value`- get/set the value of the component, can be used for binding. If you set it to a value allowed by the model class value field, the corresponding item from the data collection will be pre-selected. Use the `bind-Value` syntax for two-way binding, for example, to a variable of our own.
92+
* `Value` and `bind-Value`- get/set the value of the component, can be used for binding. If you set it to a value allowed by the model class value field, the corresponding item from the data collection will be pre-selected. Use the `bind-Value` syntax for two-way binding, for example, to a variable of your own.
93+
94+
The `Value` and `ValueField` can be of types:
95+
96+
* `number` (such as `int`, `double` and so on)
97+
* `string`
98+
* `Guid`
99+
* `Enum`
100+
93101
* `Width` - the width of the dropdown in pixels.
94102
* Templates - they allow you to control the rendering of items in the component. See the [Templates]({%slug components/dropdownlist/templates%}) article for more details.
95103
* Validation - see the [Input Validation]({%slug common-features/input-validation%}) article for more details.

0 commit comments

Comments
 (0)