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

Scheduler Hide Event Times

Asked by Shane
11 years ago.

In the kb articale
http://kb.daypilot.org/95716/how-to-show-one-month-per-cell-in-scheduler-cellduration/
it is shown how one year can be used to represent months instead of days but on this example no dates and times in the events are shown (which is a good thing) as the events are too short.

I am trying to show days as weeks, using each day in the first month of the year to represent a week.
School terms don't work easily with the scheduler.
I was using the free version and decided to buy the full version providing I could get it to work with terms. The free version works because it dose not show the times in events.
We want to use the calender as well so, is there a way to hide the times in the Events in the Scheduler?
Thanks.

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

The latest sandbox build supports ShowEventStartEnd property with a default value set to false:

http://www.daypilot.org/sandbox/Scheduler/

That means the event times are no longer added by default.

You can also customize the event HTML using BeforeEventRender event handler:

.aspx
    <DayPilot:DayPilotScheduler 
        ID="DayPilotScheduler1" 
        runat="server" 
        ...
        OnBeforeEventRender="DayPilotScheduler1_BeforeEventRender"
        ...
        >
    </DayPilot:DayPilotScheduler>
.aspx.cs
    protected void DayPilotScheduler1_BeforeEventRender(object sender, DayPilot.Web.Ui.Events.BeforeEventRenderEventArgs e)
    {
        e.InnerHTML = e.Text;
    }

Comment posted by Anonymous
11 years ago.

Thanks Dan.

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