This is a migrated thread and some comments may be shown as answers.

Scheduler Appointment Dates

1 Answer 60 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 01 Jun 2010, 05:18 PM
Hello,

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?

Thanks.

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 02 Jun 2010, 01:51 PM
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?"))
            {
                e.stopPropagation();
                e.preventDefault();
            }
        });
}

I hope this helps.

Greetings,
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.
Tags
Scheduler
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or