MP Mar 18, 2024
i was able to load the data using axios. Can you pls help me with the code when you add, edit and delete using axios. I think this is my challenge. Thanks again.
Mar 19, 2024
Hello Experts,
I was able to load resources, reservations, create new event however the delete event is not working. In the backend event is deleted but on the scheduler it is not.
Shoukd I need to call the the reservations api again after delete is invoked?
any udpate here ?
Hi Manasee Punjani,
Based on the
shared details, we have prepared a sample Axios CRUD action for the schedule.
Please find the attached sample below for your reference. Please try this
solution and let us know if you need any further assistance.
Sample: https://github.com/SyncfusionExamples/React-Scheduler-CRUD-using-axiosRegards
Regards,
Ashok
404 for git
also with my implementation
*) Drag and Drop is not working
*) If there is already an event booked/created, I don't want to others to create an event at the same time ?
*) If its an all day event, the entire day must be blocked. -- How can I do that ?
*) Event could start at anytime but could be 30/45 mins long..so if user tries to create and it overlaps it should not.. the isSchedulerAvailable is not working..
Hi Manasee,
Please find the GitHub link
Regards,
Padmini
Thanks Padmini -- I will take a look tonight.
Do you have any example on the below
*) If there is already an event booked/created, I don't want to others to create an event at the same time ?
*) If its an all day event, the entire day must be blocked. -- How can I do that ?
Hi Manasee,
Q1) Drag and Drop is not working.
Ensure that you properly import and inject DragAndDrop in your
application as shown in the code below. If you are still facing issues, kindly
provide more details about when the issues occur during drag and drop.
|
import { TimelineViews, TimelineMonth, Agenda, ScheduleComponent, ViewsDirective, ViewDirective, ResourcesDirective, ResourceDirective, Inject, Resize, DragAndDrop, } from '@syncfusion/ej2-react-schedule'; services={[ TimelineViews, TimelineMonth, Agenda, Resize, DragAndDrop, ]} />
|
Q2) f there is
already an event booked/created, I don't want to others to create an event at
the same time ?
In the Syncfusion Scheduler, we indeed have a feature that can
prevent the creation of events with overlapping time ranges. The isSlotAvailable
method is specifically designed for this purpose. It checks whether the given
time range slots are available for event creation or if they are already
occupied by other events.
When creating an event, you can pass the event's data into this method to check the availability of the slot. If the slot is available, the event will be created; if not, it will prevent the creation of the event.
For more detailed information and usage
examples, please refer to our official documentation at: Syncfusion Scheduler -
https://ej2.syncfusion.com/react/documentation/schedule/cell-customization#check-for-cell-availability
Q3) If its an all day event, the entire day must be blocked. -- How can I
do that ?
When loading the event in the schedule, ensure that the all-day
event has the IsBlock field added and set to true. If your event
changes or is created using the schedule actionBegin event, and it is an
all-day event, set the IsBlock field to true to meet your requirement.
Please try this solution, and let us know if you need any further assistance.
Sample: https://stackblitz.com/edit/react-rx9l53-ehuilz?file=index.js
[data source]
|
const data = [ { Id: 1, Subject: 'Functionality testing', StartTime: '2023-01-04T03:30:00.000Z', EndTime: '2023-01-04T05:00:00.000Z', IsAllDay: true, ProjectId: 1, TaskId: 1, IsBlock: true, },
|
[index.js]
Regards,
Ashok
Thanks Ashok.I will try and let you know.
One help with CSS, If I reduce the size of screen OR on mobile then I don't see the Date.
Hi Manasee,
Based on the information provided, we're currently facing difficulties in fully
understanding the issues you're encountering on your end. To assist you better,
could you please provide more specific information about the problems you're
facing? We suspect that the schedule date range toolbar is not visible in
responsive and mobile modes, similar to the image shared below.
Image
1
image
2 image 3
In scenarios where we've
shared image1 and image2, we've observed that the width of the date range
toolbar is not equal in some responsive and mobile modes. In such cases, since
the date range toolbar is displayed on the menu link image 3.
Furthermore, if there is a possibility that we misunderstood your requirement,
we would greatly appreciate it if you could provide us with further information
about your scenario. This will help us align our understanding with your
expectations and provide you with the best possible assistance.
Regards,
Ashok