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

Daypilot Calendar Issue

Asked by Rod
10 years ago.

Hi,

I have created a scheduler using DayPilotCalendar and DayPilotNavigator. I was using the resource view. This is use for plotting schedule event on day view. I was using daypilot version 7.4 before and all was working perfectly. I decided to upgrade and use daypilot 7.9 since I was amazed on the new features. But then I encountered a problem.

When I was using daypilot version 7.4, when plotting an event in the scheduler and navigating using the navigator, it was grabbing the right date. Example: Navigating to the 31st of October and add an event and it was grabbing the right date and time.

Now that I am using daypilot 7.9, it is now grabbing the wrong date. As you can see, I was navigating again to the 31st of October. I plotted a schedule event and it is now grabbing the wrong date. I tried navigating to the other dates but it always seem to returns the date today.

Is there a bug and/or patch to be applied?

My codes are:

Navigator:
<DayPilot:DayPilotNavigator ID="DayPilotNavigator1" runat="server"
CellWidth="45"
CellHeight="28" Font-Names="Trebuchet MS"
BorderWidth="1px" BorderColor="#bdbece"
BackColor="#ffffff" ClientObjectName="dpn"
BoundDayPilotClientObjectName="dpc1"
ShowMonths="1" SkiptMonth="1"
CssClassPrefix="navigator_8"
TitleHeight="30" ShowWeekNumbers="false"
CssOnly="true"
DataStartField="Start_string" DataEndField="End_string"
OnBeforeCellRender="DayPilotNavigator1_BeforeCellRender"
OnVisibleRangeChanged="DayPilotNavigator1_VisibleRangeChanged"
OnTimeRangeSelected="DayPilotNavigator1_TimeRangeSelected"
TimeRangeSelectedHandling="Bind"
VisibleRangeChangedHandling="CallBack"
/>

DaypilotCalendar:

<DayPilot:DayPilotCalendar ID="DayPilotCalendar1" runat="server"
ShowHeader="true" HeaderHeight="20"

HeaderLevels="2" ShowAllDayEvents="true"
DynamicEventRendering = "Disabled"

ViewType="Resources"
DataValueField="ID"
DataColumnField="TechnicianID"
DataStartField="Start_string" DataEndField="End_string"
DataTextField="Schedule_view_" DataTagFields=""
OnBeforeHeaderRender="DayPilotCalendar1_OnBeforeHeaderRender"
OnBeforeEventRender="DayPilotCalendar1_BeforeEventRender"
OnEventMove="DayPilotCalendar1_EventMove" EventMoveHandling="CallBack"
OnEventResize="DayPilotCalendar1_EventResize" EventResizeHandling="CallBack"
EventDoubleClickHandling="JavaScript" EventDoubleClickJavaScript=""
OnEventMenuClick="DayPilotCalendar1_EventMenuClick"
TimeRangeSelectedHandling="JavaScript"
TimeRangeSelectedJavaScript="showJobMenu(this, start, end, resource)"
ContextMenuSelectionID="DayPilotMenuSelect"
ContextMenuID="DayPilotMenu1"
ClientObjectName="dpc1"
OnTimeRangeMenuClick="DayPilotCalendar1_OnTimeRangeMenuClick"
OnCommand="DayPilotCalendar1_Command"
BorderColor="#A0A0A0"
CellBorderColor="#A0A0A0"
EventBorderColor="#505050"
AllDayEventBorderColor="#a0a0a0"
LoadingLabelText="Please wait while loading schedules..."
LoadingLabelBackColor="Maroon"
Theme="calendar_traditional" DurationBarVisible="false" EventCorners="Rounded" EventHeaderVisible="true"

BubbleID="DayPilotBubble1"
OnBeforeCellRender="DayPilotCalendar1_BeforeCellRender"
EventDeleteHandling="JavaScript"
EventDeleteJavaScript="if (confirm('Do you really want to delete this schedule?')) { dpc1.eventDeleteCallBack(e); }"
OnEventDelete="DayPilotCalendar1_EventDelete" EventArrangement="Cascade"

EventClickHandling="JavaScript"
EventClickJavaScript=""
DynamicLoading="true"
OnScroll="Scheduler_OnScroll" BlockOnCallBack="true" GroupConcurrentEvents="true"

/>

I was using this function script to view the current date when placing an event:

function ViewSchedule(e) {
alert(' start time: ' + e.start + ' End Time:' + e.end);
}

Thanks in advance.

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