# Drag and Drop an Item from KendoReact TreeLists to DIV

## Environment

<table>
	<tbody>
		<tr>
			<td>Product Version</td>
			<td>5.12.0</td>
		</tr>
		<tr>
			<td>Product</td>
			<td>Progress® KendoReact TreeList</td>
		</tr>
	</tbody>
</table>

## Description

How can I drag and drop item from TreeList to a DIV element?

## Solution

This requires the following:

1. Use the [rowRender](https://www.telerik.com/kendo-react-ui/components/treelist/api/treelistprops#rowrender) property of the TreeList to add the dragStart event to the rows.
2. Save the dragged item in the state during the [onDragStart](https://developer.mozilla.org/en-US/docs/Web/API/Document/dragstart_event) event.
3. During the [onDrop](https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/ondrop) event of the DIV element update the dropped item.

Following is an example with the described approach:

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/treelist/drag-drop-to-element/source.txt)
