Hi,
I am using the Cascade property for Daily View and it shows up fine.
I have a requirement to show the event that has the created date as most recent to be displayed at the top. Is there a way to do that?
How are the events cascaded by default? Is it based on time when they start or another attribute.
Thanks
Aman Gulati
Hi,
there is no easy way to do that.
Order of events is calculated based on event time and event id if times are actual, there is no API for overriding it.
You can try overriding a function that calculates the order of events, although it may be not trivial:
github.com/DHTMLX/scheduler/blo … r.js#L4092
Thanks Alexsander. I was able to change the function to sort by the event created date and it is working well.
But i see an issue if the event rolls over from the previous day. Does the cascade handle events that carry over from one date to another?
Thanks
Aman Gulati
Hello,
it’s hard to answer this one without knowing what exactly you’ve modified and how the issue looks on the page. Please provide some kind of demo (html file with all needed configs and redefined functions) or you can create sample here - docs.dhtmlx.com/scheduler/snippet/
Fixed this by using
scheduler.config.all_timed = true;
scheduler.config.multi_day = true;