I have tried to connect DayPilot Navigator to DayPilot Month, and have had no luck with the events firing, for some odd reason. Any help would be greatly appreciated.
When I use the Navigator to switch months, it is not firing the .Command event for some reason. AutoEventWireUp is set to 'True'.
Markup:
<!-- Report Calendar -->
<asp:UpdatePanel runat="server" UpdateMode="Always" >
<ContentTemplate>
<asp:Panel ID="pnlCalendar" runat="server" >
<div class="tab">
<h3>Calendar Preview</h3>
</div>
<!-- DayPilot -->
<dp:DayPilotNavigator ID="dpNavigator" runat="server" />
<dp:DayPilotMonth ID="dpMonth" runat="server" />
</asp:Panel>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="dpMonth" EventName="Command" />
</Triggers>
</asp:UpdatePanel>
VB.NET Code
<SNIP>
' Prepare DayPilot Navigator
dpNavigator.SelectMode = DayPilot.Web.Ui.Enums.NavigatorSelectMode.Month
dpNavigator.BoundDayPilotID = dpMonth.ID
' Bind DataSet to DayPilot Navigator
dpNavigator.DataStartField = "Start"
dpNavigator.DataEndField = "End"
dpNavigator.DataSource = ds_EmployeeAttendance
dpNavigator.DataBind()
' Prepare DayPilot
dpMonth.DataStartField = "Start"
dpMonth.DataEndField = "End"
dpMonth.DataTextField = "Name"
dpMonth.DataValueField = "ID"
dpMonth.DataTagFields = "Name"
dpMonth.EventClickJavaScript = ""
dpMonth.EventHeight = 25
' Bind DataSet to DayPilot Month
dpMonth.DataSource = ds_EmployeeAttendance
dpMonth.DataBind()
<SNIP>
Protected Sub dpNavigator_Command(ByVal sender As Object, ByVal e As DayPilot.Web.Ui.Events.Navigator.VisibleRangeChangedEventArgs) Handles dpNavigator.VisibleRangeChanged
If e.Data = "navigate" Then
dpMonth.StartDate = e.Data("start")
dpMonth.DataBind()
dpMonth.Update(DayPilot.Web.Ui.Enums.CallBackUpdateType.Full)
End If
End Sub