Home Unanswered Active Tags New Question

e.value result in error

We are facing a problem with DayPilot Lite (2011 version). We follow the client side examples (Javascript) and it seems that e.value is not available.

This is the control in the aspx page:
<DayPilot:DayPilotCalendar ID="EersteAfspraakDayPilotCalendar" runat="server" DataEndField="end"
DataStartField="start" DataTextField="name" DataValueField="id" TimeFormat="Clock24Hours"
HeaderDateFormat="ddd dd-MM-yyyy" NonBusinessBackColor="Silver" HeaderHeight="30"
EventClickHandling="JavaScript" EventClickJavaScript="alert(e.value());" />

The browser (IE and Google Chrome) is not opening the alert, in IE we get an error message in runtime that "e" is not defined.

Are we missing something? Can somebody help us.

Asked by Johan 8 months ago.
Replies

The JavaScript handling is a bit different in the Lite version. You should replace the code with something like this:

EventClickJavaScript="alert({0});"

The Lite edition doesn't use any JavaScript objects. It simply replaces the "{0}" string with the event id in the JS event handler.

Answer posted by Dan Letecky [DayPilot] 7 months ago.
New Reply
This reply is
Your name (optional):

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