how to avoid creating duplicate appointments in radscheduler - General Discussions - General Discussions - Progress Community
 General Discussions

how to avoid creating duplicate appointments in radscheduler

  • how to avoid creating duplicate appointments in radscheduler
  • hi!


        how to avoid duplicate appointments in radscheduler..can anyone help me...thanks
  • 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