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

DayPilotScheduler component, set businessbeginshour and businessendshour - why is 23 showing?

Asked by mr platypus
8 years ago.

Hi Dan and Team,

While using the DayPilotScheduler component of the suite, I've set the business hours properties to beginshour 7 and endshour 21..

Why then is "23" displayed?

Please see the attached image - it is a screen shot showing the issue...

Is it possible to remove it via configuration?

Thanks & Regards

mrplatypus (aka Dave)

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

Simply adding ShowNonBusiness="false" should be enough.

See also:
https://doc.daypilot.org/scheduler/hiding-non-business-hours/

And a demo here:
http://www.daypilot.org/demo/Scheduler/HideNonBusiness.aspx

Let me know if it didn't help.

Comment posted by mrplatypus (aka Dave)
8 years ago.

"Simply adding ShowNonBusiness="false" should be enough. " isn't enough...

I'll look into the two other programming options..

Comment posted by mrplatypus (aka Dave)
8 years ago.

Dan and Team.. Here is the full xml for the control

<daypilot:DayPilotScheduler ID="scheduler" runat="server"
DataStartField="Start"
DataEndField="End"
DataTextField="Name"
allowEventOverlap="true"
DataValueField="Id"
DataResourceField="RoomId"
DataTagFields="Id, RoomId, Name, BookedBy, MasterId, isRecurrent"
DataRecurrenceField="Recurrence"
Width="100%"
RowHeaderWidth="120"
CellWidth="150"
EventHeight = "40"
EventBorderColor = "#d58da1"
TimeRangeSelectedHandling="JavaScript"
TimeRangeSelectedJavaScript="timeRangeSelected(start, end, resource)"
ClientObjectName="dps1"
EventMoveHandling="CallBack"
OnEventMove="Scheduler_EventMove"
EventMoveJavaScript="dps1.eventMoveCallBack(e, newStart, newEnd, newResource);"
EventResizeHandling="CallBack"
OnEventResize="Scheduler_EventResize"
OnTimeRangeSelected="Scheduler_TimeRangeSelected"
EventEditHandling="CallBack"
OnEventEdit="Scheduler_EventEdit"
OnEventMenuClick="Scheduler_EventMenuClick"
ContextMenuResourceID="DayPilotMenuRes"
BusinessBeginsHour="7"
BusinessEndsHour="21"
ShowNonBusiness="false"
AfterRenderJavaScript="afterRender(data, isCallBack);"
ScrollLabelsVisible="true"
ShowToolTip="false"
OnCommand="Scheduler_Command"
OnEventClick="Scheduler_EventClick"
OnTimeRangeMenuClick="Scheduler_TimeRangeMenuClick"
OnBeforeEventRender="Scheduler_OnBeforeEventRender"
OnBeforeCellRender="Scheduler_BeforeCellRender"
OnIncludeCell="DayPilotScheduler1_IncludeCell"
TreeEnabled="true"
TreeIndent="15"
EventClickHandling="JavaScript"
EventClickJavaScript="setRecurring(e)"
EventSelectHandling="JavaScript"
BubbleID="DayPilotBubble1"
xCellBubbleID="DayPilotBubble1"
Theme="scheduler_blue"
ContextMenuSelectionID="DayPilotMenuSelection"
SyncResourceTree="true"
DragOutAllowed="true"
ContextMenuID="DayPilotMenu1"
RecurrentEventImage="~/images/recur10x9.png"
EventDeleteHandling="CallBack"
OnEventDelete="Scheduler_EventDelete"
EventDeleteJavaScript="if (confirm('Do you really want to delete ' + e.text() + ' ?')) dps1.eventDeleteCallBack(e);"
RecurrentEventExceptionImage="~/images/recurex10x9.png"
oneventremove="Scheduler_EventRemove" TimeFormat="Clock24Hours"
WeekStarts="Monday" AutoRefreshEnabled="True"
DynamicLoading="False" DynamicEventRenderingMargin="20"
OnScroll="Scheduler_OnScroll" ShowEventStartEnd="True" Scale="Hour"
AllowMultiSelect="False" DurationBarVisible="False" CellWidthSpec="Auto"
HeightSpec="Fixed"
Height="350" >
</DayPilot:DayPilotScheduler>

Answer posted by mrplatypus (aka Dave)
8 years ago.

Dan and Team,

I've resolved the problem by adding in more code to specifically look for start hour of 23 and end hour of 0 - when that occurrence is met, hide the time column for 23.

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