search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Daypilot Day view but without the time - possible?

Asked by Camilla
4 years ago.

1. I implemented the Monthly view and it works great: https://doc.daypilot.org/month/month-view/

I saved the Start and End event time as - for example - 2/20/2020 00:00 and 2/20/2020 00:0
This is because I don't care about the time.

2. Now,I'm implementing this with the same data.

https://aspnet.daypilot.org/demo/Calendar/ResourcesDaysView.aspx

However, I don't care about the time as I mentioned abouve. My EventStart date is..for example... 1/20/2020 00:00 and EventEnd date is 1/20/2020 00:05.

3. When DayView displays the events, it displays it at 12 AM or whatever timestamp I have.
I want to display the events starting at 9 AM... for example...just one after another..in one column...regardless of the time.

Is this doable? can I ignore the time and just display the events in each column based on the day?

Answer posted by Dan Letecky [DayPilot]
4 years ago.

If you want to display one week, you can use the Month view and use the Weeks view:

<DayPilot:DayPilotMonth 
  ID="DayPilotMonth1" 
  runat="server" 
  ...
  ViewType="Weeks"
  Weeks="1" 
  />

If you want to show just one day you don't need any control for that, you can display plain <div> elements (using <asp:Repeater>) inside a container.

Comment posted by Camilla
4 years ago.

Hmmm...that's not my question. I want the DAY view to give users a closer look at their events. They can have 40 events for one day so DAY view will give them a closer look...

Let me explain clearly again:

You see how the event is displayed at 11 AM in here: https://aspnet.daypilot.org/demo/Calendar/ResourcesDaysView.aspx

The way I save my events... the time is 00:00 (mid night)...this is because I don't care about time. I just care about the event's day.

Now, when I bind to the DAY view...event shows at midnight. I want the events to start displaying at 9AM. All day's event..in one column....regardless of the time. Just display ALL events for that one DAY...in one DAY column.

Comment posted by Dan Letecky [DayPilot]
4 years ago.

Yes, I think I understand. In DayPilot, there is no such view but you should be able to create it using basic HTML.

1. If you don't need to place the event at a specific vertical position you can use something like this:

<div class="column">
  <div class="header">My column title</div>
  <div class="event">Event 1</div>
  <div class="event">Event 2</div>
  <div class="event">Event 2</div>
</div>

2. If you want to use DayPilot Calendar you'd have to assign some time to the events in order to stack them vertically like this.

3. You can display the events as all-day events in the header (https://doc.daypilot.org/calendar/all-day-events/) but I don't see many advantages over approach #1.

Comment posted by Camilla
4 years ago.

Thanks, Dan. I'll probably assign time to them even tho time is not used.

Comment posted by Camilla
4 years ago.

Dan,

1. For your #1 above, that's without using DayPilot's calendar?

2. if time is the same for 2 events...they display side by side. Anyway to display the events vertically even if the times are the same?

I have a screenshot but don't know where to attach it.

Comment posted by Camilla
4 years ago.

I think I found my answer to my previous question , item #2

https://forums.daypilot.org/question/4317/event-cell-wrapping

Comment posted by Camilla
4 years ago.

No, I still see the events side by side in one cell. Both event start at 9:00 and end at 9:05

I want them vertical. Not horizontal.

Doable?

Comment posted by Camilla
4 years ago.

Dan,

I think I need to use the Scheduler. Let you know if I have more questions.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.