Home Unanswered Active Tags New Question

Bug with DayPilotScheduler when editing event

Hello everyone,

I'd like some help or advise on this problem :

i've got an event created, let's say between 12/22/2009 and 12/24/2009.

I have on the aspx this :

<DayPilot:DayPilotScheduler ID="DayPilotScheduler1" runat="server"
ClientObjectName="dps1"
EnableViewState="False"
CrosshairColor="Gray"
DurationBarColor="Blue"
WeekStarts="Monday"
DataStartField="eventstart"
DataEndField="eventend"
DataTextField="name"
DataValueField="id"
EventClickHandling="JavaScript"
EventClickJavaScript="alert(e.start)"
TimeRangeSelectedHandling="JavaScript"
TimeRangeSelectedJavaScript="createEvent(start, end, resource)"

When i click on the event, i call the javascript alert(e.start), it should show the start date (12/22/2009) but instead it shows "function(){return new daypilot.date($r.data.Start)}" instead of the date

Does someone knows why and how to correct it ?

Thx

Asked by socgen 2 years ago.
Replies

You should call it as a function, that is:

alert(e.start())

Please note that it returns DayPilot.Date object (and not the standard javascript Date object).

Comment posted by Dan Letecky 2 years ago.

Thx a lot, it is just fine now !

Socgen

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

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