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

Disable client click after one Appointment in RadScheduler

1 Answer 120 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Teja
Top achievements
Rank 1
Teja asked on 10 Feb 2011, 02:41 AM
Hi, 

In Telerik RadScheduler, I need to design a model in which a client is accessed to schedule only once. Once he/she is scheduled, all the other Appointments are disabled and he cannot schedule more than once.
If he/ she wants to schedule again, then the previous appointment has to be deleted and then be scheduled at his/her convenience.
Any help is appreciated.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Feb 2011, 06:45 AM
Hello Teja,

You can subscribe the OnClientAppointmentInserting event and try following code which prevents adding appointments more then once.

javascript:
function OnClientAppointmentInserting(sender, agrs)
   {
       if (sender.get_appointments().get_count() >= 1)
       {
          agrs.set_cancel(true);
          alert("Only One appointment is allowed");   
       }
   }

Thanks,
Shinu.
Tags
Scheduler
Asked by
Teja
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or