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

e.value result in error

Asked by Johan
12 years ago.

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.

Answer posted by Dan Letecky [DayPilot]
12 years ago.

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.

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