Re: [REACT] Event is rendered as milestone when it is in the non working interval
Posted: Thu Mar 09, 2023 6:34 am
by gorakh.nath
Hi Alex,
For our requirement, we want to use a feature similar to the one in the https://bryntum.com/products/schedulerpro/examples/highlight-time-spans/ demo. We are already using the ResourceTimeRanges feature to display the unavailable times for the resource. With this time span feature, we want to provide a visual aid to where the task can be dropped on the calendar.
Tried assigning the event model calendar with 24/7 working time and it didn't work. Any other ideas we can use to solve this issue? Please add the solution to the sample app I've attached for the event rendered as single-line issue.
Re: [REACT] Event is rendered as milestone when it is in the non working interval
Posted: Thu Mar 09, 2023 5:10 pm
by mats
And we are using manual scheduling instead of default automatic scheduling.
How can we achieve this?
So you have marked your tasks as manuallyScheduled in your data?
Re: [REACT] Event is rendered as milestone when it is in the non working interval
Posted: Fri Mar 10, 2023 6:51 am
by gorakh.nath
Hi mats,
Yes. We are using manuallyScheduled: true in our code.
Re: [REACT] Event is rendered as milestone when it is in the non working interval
Posted: Fri Mar 10, 2023 1:09 pm
by arcady
Please provide a runnable test case demonstrating your problem.
Re: [REACT] Event is rendered as milestone when it is in the non working interval
Re: [REACT] Event is rendered as milestone when it is in the non working interval
Posted: Tue Mar 21, 2023 10:02 am
by mats
Looks like you are attaching calendar to the "event", is the event what decides the availability or is it the resource? The flag ignoreResourceCalendar is to allow events to ignore their parent resource calendar. Perhaps you could use calendars on the resources instead of the events to make this work?
Re: [REACT] Event is rendered as milestone when it is in the non working interval
Posted: Tue Mar 21, 2023 7:59 pm
by gorakh.nath
We are attaching calendar to the events because we are using the calendarHighlight feature and we enable this feature by adding code:-
calendarHighlightFeature={{
calendar: 'event'
}}
So we have to attach the calendar to the event. I have attached updated code using calendarHighlight feature.
Re: [REACT] Event is rendered as milestone when it is in the non working interval
Re: [REACT] Event is rendered as milestone when it is in the non working interval
Posted: Fri Mar 31, 2023 5:16 am
by gorakh.nath
Hi alex,
The above mentioned implementation does not work for our use-case.
In our use-case, for every event there is a specific unique interval [taskStartDate, taskEndDate] which we want to highlight for specific resources. And we are achieving this by creating a calendar with that interval and attaching it to event. And while highlighting we are using highlightEventCalendars and passing only the specific resources to highlight.
As per your recommendation, every time we are dragging a new event we have add and delete the calendars in all the resources which is not possible.