Greetings.
I'm experimenting with the latest demo version and running into an issue. Mind you, this seems like an edge case based on what I've read from others, but hopefully you can guide me.
I have an unbound RadGridView. It's unbound because I need to support drag/drop resorting within itself, simple inline editing and drag/drop to a RadCalendar. All of this is functioning well (I made extensive use of various how-tos on drag/drop from RadGridViews).
However, when I drag a row from the RadGridView to the RadCalendar, I'm unable to detect what day I've dragged the row onto. This would be trivial if I were using the drag/drop events of the Calendar itself, but I'm not. I'm using the Drag/Drop services I've declared as part of my extended RadGridView (similar to the documentation here: http://blogs.telerik.com/winformsteam/posts/13-05-15/extending-radgridview-to-enable-row-drag-and-drop-functionality )
My drop event looks like this...
How can I figure out which day I dropped the row onto? I don't seem to be able to get anything out of RadCalendarElement, nor can I find a relevant CalendarCellElement. Help! :)
Thanks,
Elsa
I'm experimenting with the latest demo version and running into an issue. Mind you, this seems like an edge case based on what I've read from others, but hopefully you can guide me.
I have an unbound RadGridView. It's unbound because I need to support drag/drop resorting within itself, simple inline editing and drag/drop to a RadCalendar. All of this is functioning well (I made extensive use of various how-tos on drag/drop from RadGridViews).
However, when I drag a row from the RadGridView to the RadCalendar, I'm unable to detect what day I've dragged the row onto. This would be trivial if I were using the drag/drop events of the Calendar itself, but I'm not. I'm using the Drag/Drop services I've declared as part of my extended RadGridView (similar to the documentation here: http://blogs.telerik.com/winformsteam/posts/13-05-15/extending-radgridview-to-enable-row-drag-and-drop-functionality )
My drop event looks like this...
private void dragDropService_PreviewDragDrop(object sender, RadDropEventArgs e)
{
Console.WriteLine(e.HitTarget);
var el = e.HitTarget as RadCalendarElement;
if (el != null)
{
GridDataRowElement draggedRow = ((SnapshotDragItem)e.DragInstance).Item as GridDataRowElement;
if (draggedRow != null)
{
int TaskID = (int)draggedRow.Data.Cells["TaskID"].Value;
// determine the date we dragged to, and update the task.
return;
}
}
How can I figure out which day I dropped the row onto? I don't seem to be able to get anything out of RadCalendarElement, nor can I find a relevant CalendarCellElement. Help! :)
Thanks,
Elsa