- Home
- Forum
- React - EJ 2
- Cannot read properties of null (reading Value RecurrenceRule Editor)
Cannot read properties of null (reading Value RecurrenceRule Editor)
Hello, I'm facing with 2 issues:
I create an event, when I edit it, the recurrenceRule is null although I have set the value for it.
How can I set the time for IsAllDay from 00:00 to 23:59.
Here is my video for the problems. Thank you
This is my Code:
Attachment: video_1_7baa150e.rar
Hi Phan,
We have already logged as bug for your reported query for
script error occurs while editing an event in your previous forum. You can
track the status of the fix at the following link:
Forum link: https://www.syncfusion.com/forums/194681/different-between-doubleclick-and-edit-button-when-editing-an-event
Regards,
Vijay
Hi vijay,
I have recieved your reply. Thank you for you support. I fix the problem by making a dialog and call API within it. I have 1 remaining problem and I hope you can help me with that.
- When I click an event or a cell, if I change to another address of my website or when I click the Edit and pop up my Dialog, If I close the dialog it also appears the error (I'm not include it in my video). I think it because domjs.
- I want to change allDay from 00:01 to 23:59. How can I do that, because if I set it 00:00 it will missunderstood as 00:00 of the next day
Attachment: video_1_4ac79869.rar
const onPopupClose = (args) => { if (args.type === 'Editor' && args.data) { const startTime = new Date(args.data.StartTime); const endTime = new Date(args.data.EndTime); // Check if both StartTime and EndTime are at 00:00:00 if ( startTime.getHours() === 0 && startTime.getMinutes() === 0 && startTime.getSeconds() === 0 && endTime.getHours() === 0 && endTime.getMinutes() === 0 && endTime.getSeconds() === 0 ) { // Mark it as an all-day event args.data.IsAllDay = true; // Set the start time to 00:01 and end time to 23:59 to ensure it covers the entire day startTime.setHours(0, 1, 0, 0); endTime.setHours(23, 59, 59, 999); args.data.StartTime = startTime; args.data.EndTime = endTime; } } }; return (<ScheduleComponent popupClose={onPopupClose}> <ViewsDirective> <ViewDirective option='Month' /> </ViewsDirective> <Inject services={[Day, Week, WorkWeek, Month]} /> </ScheduleComponent>) |
Hi Swathi
I have recieved your answer. Sorry for my first problem that I am not describing it clearly. The error is in the video below.
"Change to another address" is change to another site of the left side bar in the video. When I change to another site it will also cause the same error.
Attachment: video_1_22c35441.rar
Dear Customer,
Thank you for your patience.
We reviewed the issue you reported using the sample you shared in the other forum. However, we were unable to replicate the issue on our end. Could you please try reproducing the issue with the attached sample? This will help us identify the cause more effectively and provide a solution.
We look forward to your response.
Attachment: reactscheduler_8f1df7fa.zip
- 5 Replies
- 3 Participants
- Marked answer
-
PH Phan Hu?nh Nh?t Hùng
- Oct 21, 2024 08:48 AM UTC
- Oct 31, 2024 10:30 AM UTC