We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Schedule Control Recurrence Rule Default Render Prevent Based on Recurrence Rule

We are Creating One Functionality where user can create recurrence Appointment.

for that we had create one Table in Database ,Id(increment),StartDate,EndDate,Subject,RecurrenceRule,RecurrenceId

For Example,

If User first create one Appointment with the following settings

FREQ=DAILY;INTERVAL=1;UNTIL=20191005T080703Z

In Database We Find Dates Between Date and Store each date Separate Appointment.

Now when We load data and pass to scheduler control Datasource 

 {
            Id: 1,
            Subject: 'Appointment1',
            StartTime: new Date(2019, 09, 21, 9, 30),
            EndTime: new Date(2019, 09, 22, 11, 30),
            IsAllDay: false,
            RoomId: 1,
            RecurrenceRule: "FREQ=DAILY;INTERVAL=1;UNTIL=20191005T080703Z;",
            RecurrenceStartDate: new Date(2019, 8, 2, 9, 30),
            RecurrenceEndDate: new Date(2019, 8, 2, 9, 30)
        },
       
        {
            Id: 2,
            Subject: 'Appintment2',
            StartTime: new Date(2019, 8, 8, 9, 30),
            EndTime: new Date(2019, 8, 8, 11, 30),
            IsAllDay: false,
            RoomId: 1,
            RecurrenceRule: "FREQ=DAILY;INTERVAL=1;UNTIL=20191005T080703Z;",
            

        },

In above Scenario i Can see two time Appointment for Date the reason is Based on Rule Calendar also Render Appointment based on Rule
How can we default rendering false based on Recurrence Rule ,can we render event as per Datasource?

1 Reply

KK Karthigeyan Krishnamurthi Syncfusion Team August 7, 2019 12:32 AM

Hi Mayank, 
 
Syncfusion greetings. 
 
We can perform CRUD operations using DataManager and kindly refer the below links. 
 
Note: Run the service sample before JS to fetch and load the events in UI. 
 
By default DB contain only the parent recurrence event and it is handled internally. Please find the below details.  
 
Recurrence Appointment Db structure for JS2.   
  
   
  
Adding recurrence appointment to db:    
  
When single occurrence is edited its date will be added to parent event’s RecurrenceException field in ISO format and the edited occurrence’s RecurrenceID field is updated with parent event id value like below.  
  
   
 
We strongly recommend not to manually update the events.  
 
Regards, 
Karthi 
 
 
 
 
 
 


Loader.
Live Chat Icon For mobile
Up arrow icon