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

Is the AppointmentResizeEnd event a wrong behavior ?

1 Answer 21 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Cooper
Top achievements
Rank 1
Cooper asked on 25 Jun 2014, 05:43 AM
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

1 Answer, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 26 Jun 2014, 12:55 PM
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.
 
Tags
Scheduler and Reminder
Asked by
Cooper
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Share this question
or