# Auto Expand on Drag Over

**RadTreeView** offers you the ability to automatically expand a treeview node when dragging items over the node. In order to do that you need to perform the following action:

* When dragging items over your treeview, move the mouse cursor over the treeview expander. The result will be an automatically expanded node.

  ![WPF RadTreeView Auto Expand on Drag Over](https://www.telerik.com/products/wpf/documentation/assets/6708a276ba674b43c8907bfe47120ed4/radtreeview_howenableautoexpandondragover_010.png)

The **RadTreeView** exposes a property **DropExpandDelay**, which sets the delay for the expand behavior. The property is of type **TimeSpan**. Here is a sample code showing you how to set it:

```C#
radTreeView.DropExpandDelay = TimeSpan.FromSeconds(5);
```

```VB.NET
	radTreeView.DropExpandDelay = TimeSpan.FromSeconds(5)
```

## Disable Auto Expand on DragOver

The **RadTreeView** doesn't actually allow you to disable the auto-expand feature, however you can set the value of the **DropExpandDelay** property to represent a long period of time. This way your users won't trigger the auto-expand at all while dragging over an item. For instance you can set the **DropExpandDelay** to an hour:

```XAML
<telerik:RadTreeView IsDragDropEnabled="True" DropExpandDelay="1:0:0"/>
```

You can also set the value from code-behind:

```C#
radTreeView.DropExpandDelay = TimeSpan.FromMinutes(60);
```

```VB.NET
	radTreeView.DropExpandDelay = TimeSpan.FromMinutes(60)
```

## See Also

* [Drag and Drop](https://www.telerik.com/products/wpf/documentation/controls/radtreeview/features/dragdrop/drag-and-drop)
* [Implement Drag and Drop Between TreeView and ListBox](https://www.telerik.com/products/wpf/documentation/controls/radtreeview/how-to/drag-and-drop/implement-between-treeview-and-listbox)
* [Enable Only Drop Inside](https://www.telerik.com/products/wpf/documentation/controls/radtreeview/how-to/drag-and-drop/enabled-drop-inside-only)
* [Disable Drop at Specific Location](https://www.telerik.com/products/wpf/documentation/controls/radtreeview/how-to/drag-and-drop/disable-drop-specific-location)
* [Implement Copy Drag](https://www.telerik.com/products/wpf/documentation/controls/radtreeview/how-to/drag-and-drop/implement-copy-drag)
