1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / how to avoid creating duplicate appointments in radscheduler

how to avoid creating duplicate appointments in radscheduler

2 posts, 0 answered
  1. varalakshmi ramya
    varalakshmi ramya avatar
    1 posts
    Registered:
    22 Apr 2010
    25 Oct 2010
    Link to this post
    hi!


        how to avoid duplicate appointments in radscheduler..can anyone help me...thanks
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    25 Oct 2010
    Link to this post
    Hello varalakshmi,

    You can subscribe for AppointmentInsert and if there is a duplicate entry you can cancel the event

    void RadScheduler1_AppointmentInsert( object sender, SchedulerCancelEventArgs e)
    {
         // check for an existing item in your datasource 
         e.Cancel = true;
       
    }

    you could also subscribe for the client event

    function OnClientAppointmentInserting(sender, eventArgs)
     {
        var now = new Date();
        if (eventArgs.get_startTime() < now)
            eventArgs.set_cancel(true);
     }


    Regards,
    Ivan Dimitrov
    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
2 posts, 0 answered