DayPilot.Calendar.getSelection

Returns the current time range selection. If no range is selected it returns null.

Return Value

DayPilot.Selection - an object with the following properties:

  • start (DayPilot.Date object) - selection start
  • end (DayPilot.Date object) - selection end
  • resource (string) - resource id, if specified for the column (otherwise null)

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