Scheduler Appointment Dates

2 posts, 0 answers
  1. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 01 Jun 2010 Link to this post


    When a user schedules a date/time for an appointment, I would like to be able to cross-reference these dates/times against some data source to ensure that a conflict doesn't exist.  What it may be conflicting with doesn't readily appear in the scheduler.  It appears there may not be a good place to validate this; I need to make a web service call to see if a conflict exists... which means appointmentwebserviceinserting or updating events won't work since I need to know immediately.

    Any ideas or tips for this scenario?

  2. T. Tsonev
    T. Tsonev avatar
    2794 posts

    Posted 02 Jun 2010 Link to this post

    Hello Brian,

    The best place to do such validation is in the advanced form template. You can add a client-side click handler for the Save button and perform the validation there.

    You can also add this handler directly without using a custom template. This will be the easier option if you don't need further customizations. You can use the client-side formCreated event:

    function formCreated(sender, eventArgs)
        $telerik.$(".rsAdvEditSave", sender.get_element())
            .click(function(e) {
                if (!confirm("Sure?"))

    I hope this helps.

    Tsvetomir Tsonev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top