Example of Drag Events From DataGrid in ASP.NET MVC Scheduler Control
This example illustrates how to drag and drop events between the DataGrid and the Scheduler.
Task Management
Unplanned Tasks
In this example, the DataGrid's AllowRowDragAndDrop
and RowDropSettings
are used to drag
and drop items from the DataGrid to the Scheduler. The RowDrop
event of the DataGrid is triggered when an item
is dropped to the Scheduler. Within the RowDrop
event, the addEvent
method
is used to add the dropped item to the target Scheduler, and the deleteRecord
method is used to remove
the dragged item from the DataGrid.
For Scheduler to DataGrid, EventDragArea
is used to drag a range of events. The DragStop
event of the Scheduler is
triggered when an item is dropped from the Scheduler to the DataGrid. Within the DragStop
event, the DataGrid's addRecord
method is used to add the
dropped event to the target DataGrid, and the deleteEvent
method is used to remove the dragged event from the
Scheduler.