New to KendoReact? Start a free 30-day trial
Drag and Drop Items from KendoReact ListView to KendoReact Scheduler
Environment
Product Version | 7.0.2 |
Product | Progress® KendoReact ListView and Progress® KendoReact Scheduler |
Description
Looking for a drag and drop between KendoReact ListView and KendoReact Scheduler. I want to transfer items from the ListView to the Scheduler.
Solution
To enable drag and drop functionality between a KendoReact ListView and a KendoReact Scheduler, follow these steps:
- Render a custom ListView item by using the
item
prop. This allows you to make the row draggable and obtain the currently dragged item. - Add an
onDropEvent
to the Scheduler container using the component ref. - When the user drops an item, add it to the Scheduler data by updating the state.
Change Theme
Theme
Loading ...
Notes
- Make sure to install the required dependencies, such as
react-dnd
,@progress/kendo-react-listview
, and@progress/kendo-react-scheduler
. - Refer to the official documentation for more information on the
DragSource
anduseRef
APIs. - Adjust the code according to your specific use case and requirements.