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

Navigator won't fire TimeRangeSelectedHandling event

Asked by Jeremy
13 years ago.

I cannot get ant TimeRangeSelectedHandling evebts to fire. I am using the latest5.6 build 1820. Here is my markup:

<DayPilot:DayPilotNavigator
ID="dpNavigator"
runat="server"
TimeRangeSelectedHandling="JavaScript"
VisibleRangeChangedHandling="JavaScript" />

Seems very simple but the default JavaScript event is not firing. I tried "Postback" and "Bind" (settingthe BoundDayPilotID of course) those did not fire either. Interestingly, the VisibleRangeChangedHandling fires without issue. Any ideas why any TimeRangeSelectedHandling eventswill not fire?

Comment posted by Jeremy
13 years ago.

I think there definetly is an issue here because I created a new page with nothing on it but the navigator control and the TimeRangeSelectedHandling event does not fire:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Appointments_Default" %>
<%@ Register Assembly="DayPilot" Namespace="DayPilot.Web.Ui" TagPrefix="DayPilot" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<DayPilot:DayPilotNavigator ID="DayPilotNavigator1" runat="server" TimeRangeSelectedHandling="JavaScript" VisibleRangeChangedHandling="JavaScript" />
</div>
</form>
</body>
</html>

Comment posted by Jeremy
13 years ago.

I figured it out :-). One very important gotcha! You MUST bind the Navigator to a datasource before it will fire the TimeRangeSelectedHandlingEvent. Not sure if this is by design, but it would be helpful if the documentation clarified this requirement. Thanks again for the awesome control.

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