Hi team,
can you tell me how to make the event with duration of 0 into the shape of diamond from rectangle in schedulerPro?
Support Forum
Zero duration tasks are already shown as diamonds, please see https://bryntum.com/examples/scheduler-pro/drag-batches/
Thank you mats!
I have one more thing I want to ask.
Is it possible to change the date of the zero duration event with getById method?
I am trying to change the date of the event as below, but cant do it.
schedulerPro.eventStore.getById([id of moved event]).startDate = '2022-05-02T00:00:00+09:00';
schedulerPro.eventStore.getById([id of moved event]).endDate = '2022-05-02T00:00:00+09:00';
once I try the date of the endDate as '2022-05-02T00:00:01+09:00', the date changed, but the shape becomes rectangle.
Can you help me out with this?
Works fine for me, try here: https://bryntum.com/examples/scheduler-pro/grouping/
schedulerPro.eventStore.getAt(2).startDate = '2020-03-23T14:00:00+09:00';
schedulerPro.eventStore.getAt(2).endDate = '2020-03-23T14:00:00+09:00';
Maybe you have a constraint set on the event in your data?
- Attachments
-
- Screenshot 2022-05-17 at 12.48.02.png (55.36 KiB) Viewed 485 times
Thank you for the reply.
I was able to set the same date to startDate and endDate, but the event is still rectangle.
I have checked the difference of startDate and endDate with getTime(), and got 0.
But when I have checked the duration of the event, it was 1.1574074074074074e-8 days
I think this is the same as 0ms, but is not exact 0.
I think this is the cause the event is not diamond.
Is there way to tackle this? (maybe if I can only set the start or end date, and the duration, that might work)
- Attachments
-
- スクリーンショット 2022-05-17 213953.jpg (74.86 KiB) Viewed 483 times