More in this section
Forums / Bugs & Issues / desable the appointment row

desable the appointment row

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Harikrishnan
    Harikrishnan avatar
    13 posts
    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 c# only

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

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

    my version of the DLL : 2009.2.701.35
  2. Veronica
    Veronica avatar
    125 posts
    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