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

Bug with DayPilotScheduler when editing event

Asked by socgen
14 years ago.

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

Comment posted by Dan Letecky
14 years ago.

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 Anonymous
14 years ago.

Thx a lot, it is just fine now !

Socgen

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