This is a migrated thread and some comments may be shown as answers.

ResizeCompleted UTC/Local problem

1 Answer 51 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Christie Admin
Top achievements
Rank 1
Christie Admin asked on 04 Aug 2014, 06:40 PM
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

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 07 Aug 2014, 08:47 AM
Hi Alain,

I have made a few tests with the mentioned version, but I wasn't able to reproduce the reported issue. Could you please send us more details on the project and the cases that the issue occurs?

I'm looking forward to your reply.

Regards,
Yana
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
ScheduleView
Asked by
Christie Admin
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or