Is there a way to make sure events that span more than one day can be shown in a single row?

  • 1
  • Question
  • Updated 4 years ago
  • Answered
I am getting close to saying, we can actually buy this, but I have a small issue currently. The events we have in the calendar aren't lining up properly. The one day event is in between two multiple day events and it looks ugly. Is there a way to make sure the events with the most days are at the top?

 

Scott
Photo of s.molinari

s.molinari

  • 190 Points 100 badge 2x thumb

Posted 4 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
In my experience,  you can get the results you want by adding an "Order by" property to the model that is driving your calendar.  I typically use StartDateTime as shown below. 

Photo of s.molinari

s.molinari

  • 190 Points 100 badge 2x thumb
Thanks Rob, and sorry for the late reply.

I can change the order in the Model all I want and it has no effect on the order of the entries in the calendar at all. 

Scott
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Scott,  I was able to more relialby get an appropriate sort order when I sorted the model on the standard field  "DurationInMinutes DESC"

Here is my test example: 




Now if you have multiple event sources,  I don't think you will have any luck with this plan.  In that case I don't think I have a good answer for you.