desable the appointment row

Posted by Community Admin on 04-Aug-2018 09:34

desable the appointment row

All Replies

Posted by Community Admin on 22-Aug-2011 00:00
How can we desable the appointmnent row , if the already have appointmnet saved on that .
not in javascript ....in c# only

i have added this code using javascript, but not working :)

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

my version of the DLL : 2009.2.701.35
Posted by Community Admin on 23-Aug-2011 00:00
Hello Harikrishnan,

You were close to the solution. However the right way is to subscribe to the OnClientAppointmentInserting client-side event and cancel the event if there is more than 1 appointments in the TimeSlot. So you need to rewrite the check. Please take a look at this KB article for a similar solution.

Best wishes,
Veronica Milcheva
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

This thread is closed