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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Schedule Control Recurrence Rule Default Render Prevent Based on Recurrence Rule

Thread ID:

Created:

Updated:

Platform:

Replies:

146492 Aug 6,2019 08:15 AM UTC Aug 7,2019 08:32 AM UTC JavaScript - EJ 2 1
loading
Tags: Schedule
Mayank Patel
Asked On August 6, 2019 08:15 AM UTC

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?

Karthigeyan Krishnamurthi [Syncfusion]
Replied On August 7, 2019 08:32 AM UTC

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 
 
 
 
 
 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon