# Data Binding

The Sortable supports two data binding approaches—automatic binding with [`kendoSortableBinding`](https://www.telerik.com/kendo-angular-ui/components/sortable/api/sortablebindingdirective) and manual binding with [`data`](https://www.telerik.com/kendo-angular-ui/components/sortable/api/sortablecomponent#data). Both accept arrays of strings or objects.

## Automatic Binding with the Built-In Directive

To bind data automatically, set [`kendoSortableBinding`](https://www.telerik.com/kendo-angular-ui/components/sortable/api/sortablebindingdirective) to your data array. The directive tracks all drag-and-drop operations and updates the array for you. No extra event handling is required.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/sortable/binding-auto/source.txt)

This approach is a good fit when you:

* Reorder items without custom logic.
* Transfer items between multiple lists through the [`zone`](https://www.telerik.com/kendo-angular-ui/components/sortable/api/sortablecomponent#zone) property.
* Need the data array to stay in sync without manual event handling.

## Manual Binding with the Data Property

To bind data manually, set the [`data`](https://www.telerik.com/kendo-angular-ui/components/sortable/api/sortablecomponent#data) property to your array and handle the [`dragOver`](https://www.telerik.com/kendo-angular-ui/components/sortable/api/sortablecomponent#dragover) and [`navigate`](https://www.telerik.com/kendo-angular-ui/components/sortable/api/sortablecomponent#navigate) events yourself. Inside each handler, call [`moveItem()`](https://www.telerik.com/kendo-angular-ui/components/sortable/api/sortablecomponent#moveitem) on the Sortable instance to apply the reorder.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/sortable/binding/source.txt)

This approach is a good fit when you:

* Validate or cancel a move before it applies.
* Run side effects such as API calls on each reorder.
* Apply conditional rules that determine whether an item can move.

## Suggested Links

* [Sortable Items](https://www.telerik.com/kendo-angular-ui/components/sortable/items)
* [API Reference of the SortableBindingDirective](https://www.telerik.com/kendo-angular-ui/components/sortable/api/sortablebindingdirective)
* [API Reference of the SortableComponent](https://www.telerik.com/kendo-angular-ui/components/sortable/api/sortablecomponent)
