Home Unanswered Active Tags New Question

Creating Event on menu

Hi all

In my Scheduler, I can add events with the javscript function createEvent(start, end, resource) that is proposed in the exemple.

I would like know to add in the menu, the same thing as the following code:

<DayPilot:MenuItem Text="Add an event " Action="JavaScript" JavaScript="javascript:createEvent(e.start.toString(),e.end.toString(), e.resource);"></DayPilot:MenuItem>

--> Here, I am reusing the same javascript code.

It doesn't work.... It says :function(){return new daypilot.date($r.data.Start)}

If someone can help me...

Thanks


Asked by St&#233;phane 2 years ago.
Replies
No reply yet.
New Reply
This reply is
Your name (optional):

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