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

MVC to Jquery conversion for Daypilot Event Selection

Asked by Rin
6 years ago.

What is the jquery syntax/code for the below daypilot mvc code.
"EventClickHandling = EventClickHandlingType.Select,
EventSelectHandling = EventSelectHandlingType.JavaScript,
EventSelectJavaScript = "OnEventClick(e);",
// EventClickHandling = EventClickHandlingType.JavaScript,
EventDoubleClickHandling = EventDoubleClickHandlingType.JavaScript,
EventClickJavaScript = "OnEventClick(e);","

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

The JavaScript config object would look like this:

{
  eventClickHandling: "Select",
  onEventSelect: function(args) { OnEventClick(args.e); },
  eventDoubleClickHandling: "Enabled"  // it's disabled by default
}

EventClickJavaScript is not translated to onEventClick because it would cause OnEventClick(e) to be fired twice.

Double click event is enabled (eventDoubleClickHandling) but your config is missing eventDoubleClick 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.