# Data and Value Binding

The AutoComplete enables you to configure its predefined list of options and selected value.

To set the predefined option list, use the [`data`](https://www.telerik.com/kendo-react-ui/components/dropdowns/api/autocompleteprops#data) property. To set the selected value, use the [`value`](https://www.telerik.com/kendo-react-ui/components/dropdowns/api/autocompleteprops#value) property.

## Data Binding

To bind the AutoComplete to data, use the [`data`](https://www.telerik.com/kendo-react-ui/components/dropdowns/api/autocompleteprops#data) property of the component.

The `data` property accepts both:

* [Arrays of primitive values](https://www.telerik.com/kendo-react-ui/components/dropdowns/autocomplete/binding#arrays-of-primitive-values) and
* [Datasets of objects](https://www.telerik.com/kendo-react-ui/components/dropdowns/autocomplete/binding#datasets-of-objects).

### Arrays of Primitive Values

The following example demonstrates how to bind the AutoComplete to an array of primitive values.

[Demo Source](https://demos.telerik.com/kendo-react-ui/dropdowns/autocomplete/primitive-value/func/source.txt)

### Datasets of Objects

If the AutoComplete is bound to a dataset of objects, use the [`textField`](https://www.telerik.com/kendo-react-ui/components/dropdowns/api/autocompleteprops#textfield) property to specify the text of the data objects.

[Demo Source](https://demos.telerik.com/kendo-react-ui/dropdowns/autocomplete/objects-data/func/source.txt)

## Value Binding

To render the selected value, use the [`value`](https://www.telerik.com/kendo-react-ui/components/dropdowns/api/autocompleteprops#value) property of the AutoComplete. If you set the value through the `value` property, hook up to the [`onChange`](https://www.telerik.com/kendo-react-ui/components/dropdowns/api/autocompleteprops#onchange) event and manually update the value of the `value` property.

[Demo Source](https://demos.telerik.com/kendo-react-ui/dropdowns/autocomplete/controlled/func/source.txt)

## Suggested Links

* [API Reference of the AutoComplete](https://www.telerik.com/kendo-react-ui/components/dropdowns/api/autocompleteprops)
* [Controlled Components in React](https://react.dev/learn/sharing-state-between-components#controlled-and-uncontrolled-components)
