ResizeCompleted UTC/Local problem

2 posts, 0 answers
  1. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 04 Aug 2014 Link to this post

    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
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 07 Aug 2014 Link to this post

    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.
     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top