# Drag and Drop Items From the KendoReact Grid to the KendoReact Scheduler

## Environment

<table>
	<tbody>
		<tr>
			<td>Product Version</td>
			<td>6.0.2</td>
		</tr>
		<tr>
			<td>Product</td>
			<td>Progress® KendoReact Grid</td>
		</tr>
	</tbody>
</table>

## Description

Looking for a drag and drop between KendoReact Grid and KendoReact Scheduler. I want to transfer items from the Grid to the Scheduler.

## Solution

This will required the following setup:

1. Use the [rowRender](https://www.telerik.com/kendo-react-ui/components/grid/api/GridProps/#rowrender) prop of the Grid to make the row draggable and to get the currently dragged item.
2. Then we need add a onDropEvent to the Scheduler container using the [component ref](https://reactjs.org/docs/refs-and-the-dom.html#creating-refs).
3. When the user drops an item we add it to the Scheduler data updating the state.

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/scheduler/dnd-from-grid/source.txt)

## Enabling the drag and drop on mobile devices

This can be achieved by using the KendoReact [Drag\&Drop](https://www.telerik.com/kendo-react-ui/components/utils/drag-and-drop/) utility with a custom `DragHandleCell` with touchAction set to `none`:

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/scheduler/dnd-from-grid-mobile/draggable/source.txt)

The native Drag & Drop API does not support touch events by default. It is possible to enable the drag and drop functionality on mobile devices by using a polyfill as well:

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/scheduler/dnd-from-grid-mobile/polyfill/source.txt)
