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

Client side events after an item has been created in DayPilotVertical

Asked by Ewart Nijburg
17 years ago.
It would be convenient to have an event that enables me to register the createdDIV (calender) element as a drop target for external drop events. Likewise it would be nice to have a clientside event that firesafter all the calendar_BeforeEventRender events have fired so that the added markup can be registered as drop sources.
Comment posted by Dan Letecky
17 years ago.
That sounds interesting although it might be a bit challenging (drag & drop in JavaScript is not so straightforward as in WinForms).

Can you please describe your use case (here or at daypilot @ annpoint.com) so I can discuss the possible solutions?
Comment posted by Dan Letecky
17 years ago.
I've been thinking about your suggestion and I see two scenarios where this is helpful:
  • drag & drop between two DayPilot instances (that's probably what you want to achieve)
  • drag & drop of events that are available outside of DayPilot (maybe as a list of unplanned events that need to be moved to a specific time and resource)
I'll do some tests for both scenarios. Both seem to be doable, I'll add them to the roadmap when I'm finished with the prototypes.
Comment posted by Ewart Nijburg
17 years ago.

Hi Dan,

Thanks for the quick response. I just changed to the vertical dayplanner for a pilot project which involves planning rides for a taxi companytransporting disabled persons. The dayplanner is used to plan routes on weekdays and the drag and drop functionality is meant to be used to drag external ride objects into the planned route. This proces makes planning very easy to comprehend

The functionality i'm looking for is being able to register the route as a drop target, which accepts rides from outside the dayplanner control. At the same time I'm rendering the contained rides through the beforerender event and I also want to be able to register those rides as drop sources so that they can be drag from one route to another.

Drag drop isn't very difficult to implement by means of the following library: www.openrico.org

Thanks for your efforts, the customer (Deeporange) has already purchased the control for use.

Comment posted by Dan Letecky
17 years ago.
Thanks for the explanation. I will analyze it a little bit. I will post the possibilities and time schedule here when I'm done.
Answer posted by Dan Letecky
15 years ago.

You can use AfterEventRenderJavaScript property to execute custom code after the event is created.

Two local variables will be available to such custom code:

  • e (DayPilot.Event object)
  • div (the HTML div element that represents the event)

AfterEventRenderJavaScript is available in all controls (Calendar, Month, Scheduler and Dynamic Scheduler).

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