Home Unanswered Active Tags New Question

Navigator won't fire TimeRangeSelectedHandling event

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?

Asked by Jeremy 2 years ago.
Replies

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 2 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.

Comment posted by Jeremy 2 years ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java