desable the appointment row
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"
);
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 >>