Hi,
I'm using Telerik V2014.1.331.40 and I create a usercontrol which contain a ScheduleView, associated to the ScheduleView, I implemented a behavior derived on the ScheduleViewDragDropBehavior to raise en event on the resize completed operation. Sometime, something verry weird occur in the resize completed operation!!! The "Start" property are always in "Local" but sometime, I say sometime, the "End" property are in "Local" and sometime in "Utc"!!!
public override void Resize(DragDropState state)
{
bool isCompleted = true;
if (this.OnResizeCompleted != null)
{
ScheduleViewByWeekResizeCompletedArgs args = new ScheduleViewByWeekResizeCompletedArgs();
args.ResizeCompletedAgendaSpot.SourceMeetingId = (Guid)(state.Appointment as AppointmentSpot).MeetingId;
args.ResizeCompletedAgendaSpot.DestinationSpotStart = state.DestinationSlots.FirstOrDefault().Start;
args.ResizeCompletedAgendaSpot.DestinationSpotEnd = state.DestinationSlots.FirstOrDefault().End;
this.OnResizeCompleted(this, args);
isCompleted = args.ResizeCompletedAgendaSpot.IsCompleted;
}
if (isCompleted)
{
base.Resize(state);
}
}
Thank's
Alain
I'm using Telerik V2014.1.331.40 and I create a usercontrol which contain a ScheduleView, associated to the ScheduleView, I implemented a behavior derived on the ScheduleViewDragDropBehavior to raise en event on the resize completed operation. Sometime, something verry weird occur in the resize completed operation!!! The "Start" property are always in "Local" but sometime, I say sometime, the "End" property are in "Local" and sometime in "Utc"!!!
public override void Resize(DragDropState state)
{
bool isCompleted = true;
if (this.OnResizeCompleted != null)
{
ScheduleViewByWeekResizeCompletedArgs args = new ScheduleViewByWeekResizeCompletedArgs();
args.ResizeCompletedAgendaSpot.SourceMeetingId = (Guid)(state.Appointment as AppointmentSpot).MeetingId;
args.ResizeCompletedAgendaSpot.DestinationSpotStart = state.DestinationSlots.FirstOrDefault().Start;
args.ResizeCompletedAgendaSpot.DestinationSpotEnd = state.DestinationSlots.FirstOrDefault().End;
this.OnResizeCompleted(this, args);
isCompleted = args.ResizeCompletedAgendaSpot.IsCompleted;
}
if (isCompleted)
{
base.Resize(state);
}
}
Thank's
Alain