Is the AppointmentResizeEnd event a wrong behavior ?

2 posts, 0 answers
  1. Cooper
    Cooper avatar
    19 posts
    Member since:
    Mar 2014

    Posted 25 Jun 2014 Link to this post

    Hi Telrik Member:
     
    I created “Appointments_CollectionChanged” function to instead “AppointmentResized“ event before Updated Telerik. 

    Reference paper: http://www.telerik.com/forums/appointmentresized-event
     
    After updated telerik dll on 25/06/2014, “AppointmentResizeEnd” event will be fired  when user resized the appointment. 

    But it still be fired “AppointmentResizeEnd” event when the user just selected the appointment. 

    Is it a wrong behavior?

    customerID:QD1612651
  2. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 26 Jun 2014 Link to this post

    Hello,

    Thank you for contacting us.

    It appears that the AppointmentResizeEnd event indeed behaves incorrectly. The event is fired on MouseUp even when the resize operation was not started at all. I have logged this in our feedback portal so you can track it here: http://feedback.telerik.com/Project/154/Feedback/Details/132114-fix-the-appointmentresizeend-event-fires-on-mouse-up-even-when-the-resize-was-no. For the time being, you can workaround this by implementing a custom resizing behavior and replacing the default one. The following code snippet demonstrates this:
    public Form1()
    {
        InitializeComponent();
        this.radScheduler1.SchedulerElement.ResizeBehavior = new MyResizeBehavior(this.radScheduler1);
    }
     
    class MyResizeBehavior : AppointmentResizingBehavior
    {
        public MyResizeBehavior(RadScheduler scheduler)
            :base(scheduler) { }
     
        public override bool EndResize(IEvent appointment)
        {
            if (!this.IsResizing)
            {
                return false;
            }
            return base.EndResize(appointment);
        }
    }

    I have updated your Telerik points for bringing this to our attention. Should you have any future questions, do not hesitate to contact us.

    Regards,
    Ivan Todorov
    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 WinForms is Visual Studio 2017 Ready
Back to Top