Hi,
I use a RadScheduleView with a collection of SpecialSlots (SpecialSlotsSource) and I'm trying to handle if the user drop an appointment on a compatible slot or not. My SpecialSlot (SpecialSlotsSource) was defined as follow:
public class MySpecialSlot : Slot
{
public bool IsCompatible { get; set; }
}
I implemented a CustomDragDrop behavior and in the override method Drop I'm trying to cast the "state.DestinationSlots.ElementAt(0) as MySpecialSlot" to check if the "IsCompatible" member is TRUE/FALSE the cast always return null.
Thank's
Alain
I use a RadScheduleView with a collection of SpecialSlots (SpecialSlotsSource) and I'm trying to handle if the user drop an appointment on a compatible slot or not. My SpecialSlot (SpecialSlotsSource) was defined as follow:
public class MySpecialSlot : Slot
{
public bool IsCompatible { get; set; }
}
I implemented a CustomDragDrop behavior and in the override method Drop I'm trying to cast the "state.DestinationSlots.ElementAt(0) as MySpecialSlot" to check if the "IsCompatible" member is TRUE/FALSE the cast always return null.
Thank's
Alain