Delete / Edit event in event series working with json file

Hi,
I'm using @syncfusion/ej2-react-schedule, and I use json file for storage via API. I faced two problems:
1) With Delete event in series : if I update RecurrenceException, i lose the last deleted event in the series
2) With Edit event in series : same problem
And this is the JSON file I'm working with :
{
"scheduleData": [
{
"RecurrenceRule": "FREQ=DAILY;INTERVAL=1;",
"StartTimezone": null,
"EndTimezone": null,
"RecurrenceException": "20210407T093000Z",
"IsAllDay": false,
"StartTime": "2021-04-04T09:30:00.000Z",
"EndTime": "2021-04-04T10:00:00.000Z",
"Id": 1,
"Subject": "add"
}
]
}

Any help please
Thanks !

7 Replies 1 reply marked as answer

RV Ravikumar Venkatesan Syncfusion Team April 12, 2021 01:15 PM UTC

Hi Rania, 

Greetings from Syncfusion support. 

We have validated your reported problem “Delete / Edit event in event series working with JSON file” at our end and  suspect that when deleting an event from a series the deleted event is not rendered on the Schedule which is the behavior of the Schedule. The start time of the deleted event is added to the parent event’s RecurrenceException field. 

When editing an event from the series, the edited event is rendered on the edited start and end time and the edited event start time is added to the parent event RecurrenceException field and the edited occurrence is created as a new event with edited data. 


Parent event before editing and deleting: 

 

Parent event and edited event data once any one of the occurrences edited from a series: 

 

Parent event data once an occurrence of the series is deleted: 

 

Kindly check the above-shared sample and the recurrence event is not behaving properly as explained above share the below details to serve you better. 
  • Reproduce the problem in the above-shared sample or
  • Share a sample that illustrates the problem which would help us to proceed further.

 
Regards, 
Ravikumar Venkatesan 


Marked as answer

RK Rania Khadaier April 14, 2021 08:18 AM UTC

Hi Ravikumar,
Thanks for your reply to my problem. I corrected my code using your support, my current problem is with the 2nd modification (edit or delete).
The 2nd modification overwrites the first.
This is an example : I modify the event of Wednesday first and then I modify the event of Friday
{
"scheduleData": [
{
"RecurrenceRule": "FREQ=DAILY;INTERVAL=1;",
"StartTimezone": null,
"EndTimezone": null,
"RecurrenceException": "20210416T100000.000Z",
"IsAllDay": false,
"StartTime": "2021-04-12T09:30:00.000Z",
"EndTime": "2021-04-12T10:00:00.000Z",
"Id": 1,
"Subject": "Scrum meeting"
},
{
"FollowingID": null,
"Guid": "aa4b2f97-a70b-8b69-49f6-d2bf357a8ddf",
"RecurrenceRule": null,
"StartTimezone": null,
"EndTimezone": null,
"RecurrenceID": 1,
"IsAllDay": false,
"StartTime": "2021-04-14T08:00:00.000Z",
"EndTime": "2021-04-14T08:30:00.000Z",
"Id": 2,
"Subject": "Scrum meeting"
},
{
"Guid": "1a6b3eb1-bf9b-be93-e950-05b989398d3f",
"RecurrenceRule": null,
"StartTimezone": null,
"EndTimezone": null,
"RecurrenceID": 1,
"IsAllDay": false,
"StartTime": "2021-04-16T10:00:00.000Z",
"EndTime": "2021-04-16T10:30:00.000Z",
"Id": 3,
"Subject": "Scrum meeting"
}
]
}
The json file get only the last value of RecurrenceException.
I tried to push values in RecurrenceExceptionas as an array but it doesn't work.
Any help for this please. Thanks !



NR Nevitha Ravi Syncfusion Team April 15, 2021 08:34 AM UTC

Hi Rania, 

Thanks for your update. 

We have checked the reported scenario ‘on second modification the exception not added’ at our end, but in our previously shared sample we got the edit/deleted occurrences in exception properly. Also we let you know that the deleted/edited occurrence details will be updated automatically to the RecurrenceException field. 
Please refer to the following screenshot. 
 

Kindly share the following details to check the problem at our end. 
  • replication steps of your reported issue
  • Reproduce the issue in a sample.
  • Whether you are manual pushing the exception dates to the RecurrenceException field?

Regards, 
Nevitha 



RK Rania Khadaier April 19, 2021 10:38 AM UTC

Hi Nevitha !
Thanks for dealing with my problem. 
I have another question : can i disable edit/delete buttons in the pop-up for series and event.
Thanks.


PN Praveenkumar Narasimhanaidu Syncfusion Team April 20, 2021 05:16 PM UTC

Hi Rania, 
  
Thanks for your update. 
  
We have validated your requirement and suspect that you want to hide EntireSeries button from popup. We can achieve your requirement with below mentioned CSS and prepared sample for your reference which can be available from following link. 
  
  
Index.css 
.e-quick-dialog-series-event { 
  displaynone; 
} 
  
Image: 
 

Kindly try the above solution and if we misunderstood your requirement, please share a detail use case scenario and requirement screenshots to provide a prompt solution at earliest. 
  
Regards, 
Praveenkumar. 



RK Rania Khadaier May 18, 2021 10:32 AM UTC

Thanks for your reply !


NR Nevitha Ravi Syncfusion Team May 19, 2021 04:02 AM UTC

Hi Rania, 

You are most welcome, please get back to us for further assistance. 

Regards, 
Nevitha  


Loader.
Up arrow icon