I tried a code already exists, I placed a TreeView and a scheduler and when I take the information of where to loosen it gives me null value, this is the code:
private
void OnDropInfo(object sender, DragDropEventArgs e)
{
try
{
var sourceTreView = e.Options.Source as Telerik.Windows.Controls.TreeView.TreeViewDragCue;
var item = e.Options.Destination as TimeSlotItem;
if (e.Options.Status == DragStatus.DragComplete && item != null)
{
Appointment punto = new Appointment();
punto.Start = item.TimeSlot.Start;
punto.End = item.TimeSlot.End;
punto.Subject = e.Options.Source.Name;
CalendarioPrincipal.Appointments.Add(punto);
}
}
catch (Exception parException)
{
throw new Exception(parException.Message);
}
}