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

Editing a RadScheduler appointment

1 Answer 111 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Paulo
Top achievements
Rank 1
Paulo asked on 29 Jul 2011, 11:21 PM

Hello.

In the web application I am developing, RadScheduler is used to display appointments users can join in.
Since users are not allowed to create appointments, property AllowInsert has been set to "False".

I would like to add the following features to the application:

1) If a time slot is double-clicked and there is no appointment associated with it, a message should be displayed stating that only existing appointments can be selected.

2) If a time slot is double-clicked and there is an appointment associated with it, a series of web service calls should be made in order to identify if the user is eligible to join the appointment.
If any of the conditions fails, a message should be displayed stating the reason(s) the user cannot join the appointment.

3) If a time slot is double-clicked, there is an appointment associated with it, and the conditions checked in step #2 are satisfied, the user should be allowed to join the appointment.
In this case, a form should be displayed with read-only fields, like the description and date/time of the appointment.
In addition, input fields should be displayed so that the user can provide additional information associated with the appointment.
After entering all information, the user should join the appointment after clicking Save.

I would appreciate whether some guidelines could be provided in order to implement these features.

Thank you in advance.
Paulo

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 04 Aug 2011, 08:49 AM
Hi Paulo,

Unfortunately there is no timeSlot doubleclick event but you may try to use OnClientTimeSlotClick event like here:
function OnClientTimeSlotClick(sender, args) {
           var start = args._targetSlot.get_startTime();
           var end = args._targetSlot.get_endTime();
 
           var apps = sender.get_appointments().getAppointmentsStartingInRange(start, end);
 
           for (var i = 0; i < apps.get_count(); i++) {
               if (apps.get_count()>0) {
                   alert(apps._array[i]._subject);
               }
               else {
                   alert("No appointments in this timeslot!");
               }
           }
       }

Alternatively, you can use OnClientAppointmentInserting.

Hope this will be helpful

Kind regards,
Plamen Zdravkov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Scheduler
Asked by
Paulo
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or