# Single Selection in TreeView

The TreeView lets the user select a single node at a time.

In this article:

* [Basics](https://www.telerik.com/blazor-ui/documentation/components/treeview/selection/single#basics)
* [Examples](https://www.telerik.com/blazor-ui/documentation/components/treeview/selection/single#examples)
  * [Selection of a single node using one-way data binding](https://www.telerik.com/blazor-ui/documentation/components/treeview/selection/single#selection-of-a-single-node-using-one-way-data-binding)
  * [Selection of a single node using two-way data binding](https://www.telerik.com/blazor-ui/documentation/components/treeview/selection/single#selection-of-a-single-node-using-two-way-data-binding)

## Basics

To use **single** node selection, set the `SelectionMode` parameter to `Telerik.Blazor.TreeViewSelectionMode.Single`.

To deselect the node hold the `Ctrl` key and click on it.

## Examples

This section contains the following examples:

* [One-way binding](https://www.telerik.com/blazor-ui/documentation/components/treeview/selection/single#selection-of-a-single-node-using-one-way-data-binding)
* [Two-way binding](https://www.telerik.com/blazor-ui/documentation/components/treeview/selection/single#selection-of-a-single-node-using-two-way-data-binding)

### Selection of a single node using one-way data binding

You can use one-way binding to provide an initial node selection, and respond to the `SelectedItemsChanged` to update the view-model when user selection occurs. If you don't update the model, selection is effectively canceled. If you want to load async data on demand based on the chosen node, use the [`OnItemClick`](https://www.telerik.com/blazor-ui/documentation/components/treeview/events#onitemclick) event.

<demo metaUrl="client/treeview/selection/single/example-1/" height="420"></demo>

### Selection of a single node using two-way data binding

You can use two-way binding to get the node the user has selected. This can be useful if the node model already contains all the information you need to show based on the selection.

<demo metaUrl="client/treeview/selection/single/example-2/" height="420"></demo>

## See Also

* [Selection Overview](https://www.telerik.com/blazor-ui/documentation/components/treeview/selection/overview)
* [Multiple Selection](https://www.telerik.com/blazor-ui/documentation/components/treeview/selection/multiple)
* [Apply Selection Styles Only on TreeView Item Text](https://www.telerik.com/blazor-ui/documentation/knowledge-base/treeview-node-selection-only-on-item-text)
