More in this section

Forums / Bugs & Issues / desable the appointment row

desable the appointment row

2 posts, 0 answered
  1. Harikrishnan
    Harikrishnan avatar
    13 posts
    Registered:
    09 May 2011
    22 Aug 2011
    Link to this post
    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
  2. Veronica
    Veronica avatar
    125 posts
    Registered:
    30 Jan 2015
    23 Aug 2011
    Link to this post
    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 >>

2 posts, 0 answered