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

Appointment and ModifiedAppointment Resources the same after drag and drop

5 Answers 131 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Albert
Top achievements
Rank 1
Albert asked on 26 Jun 2008, 01:59 PM
The RadScheduler is bound in Day view with resources across the top and times down the left side.  When you drag an appointment from one resource and drop it onto another you expect that the AppointementUpdate's event arguments e.Appointment.Resources(0) and e.ModifiedAppointment.Resources(0) would be two different resources.  Instead these properties both reflect the resource that you are dragging the appointment to.

In other words, when handling the AppointmentUpdate event after dragging and dropping an appointment from one resource to another, there doesn't seem to be any way to tell where the appointment came from.

Is this by design or should the e.Appointment.Resources and e.ModifiedAppointment.Resources contain different values?

5 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 27 Jun 2008, 07:25 AM
Hi Albert,

This behavior is result of a bug that we have fixed in the latest Service Pack release. Are you sure that you are testing with the latest version (2008.1.619)?

Best wishes,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Albert
Top achievements
Rank 1
answered on 27 Jun 2008, 05:56 PM
Thank You!

I downloaded the trial version last week.  In add /remove programs it say's 2008.1.  If this is not the latest version, how do I obtain the service pack for this release?

Al 
0
T. Tsonev
Telerik team
answered on 30 Jun 2008, 07:23 AM
Hi Albert,

The version is part of the name of the installer file. The name for the SP version is Telerik.Web.UI_2008_1_619_trial. You should be able to download it from your Client.NET account. Uninstall the previous version first and delete the installation folder just to be safe.

Kind regards,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Michel
Top achievements
Rank 1
answered on 27 Oct 2008, 08:18 PM
Hi,

Version: 2008.2.1001.20

I have this problem but when setting the resource on client side. In my project I need to have confirmation dialog for all updates/resizing/moving of an appointment.

The folowing Javascript is called by client event OnClientAppointmentMoveEnd="appointmentMoveEnd"

function appointmentMoveEnd(sender, args) {  
    // First cancel, then do the action explicitly if confirmed  
    args.set_cancel(true);  
 
    var targetSlot = args.get_targetSlot();  
    var appointment = args.get_appointment();  
 
    appointment.get_element().style.border = "0px none black";  
 
    var free = isSlotFree(targetSlot, appointment);  
    if (free) {  
 
        radconfirm('Are you sure you want to reschedule the exam for "' + appointment.get_subject() + '"?'function(arg) {  
            if (arg) {  
                var scheduler = $find('RadScheduler1');  
 
                var beginTime = targetSlot.get_startTime();  
                var endTime = new Date(beginTime.getTime() + scheduler.get_minutesPerRow() * 60000 * 2);  
 
                var resources = appointment.get_resources();  
                resources.clear();  
                  
                var targetResource = targetSlot.get_resource();  
                resources.add(targetResource);  
                  
                appointment.set_start(beginTime);  
                appointment.set_end(endTime);  
 
                scheduler.updateAppointment(appointment);  
            }  
        }, 330, 100, this"Confirm ReScheduling Exam");  
    }  

Am I doing something wrong ?

Thanks a lot,
Mike

 

0
Peter
Telerik team
answered on 29 Oct 2008, 03:35 PM
Hello Michel,

Thanks for reporting this issue. We verified that it is a bug with RadScheduler. We will fix it for Q3 2008 release which is scheduled for the beginning of November.


Greetings,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Albert
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Albert
Top achievements
Rank 1
Michel
Top achievements
Rank 1
Peter
Telerik team
Share this question
or