Skip to main content

Methods overview

NameDescription
DataProcessorDataProcessor constructor
PromisePromise object constructor
addEventAdds a new event
addEventNowAdds a new event and opens the lightbox to confirm
addMarkedTimespanMarks dates, but with certain settings makes blocking (allows setting custom styling for the limit)
addSectionAdds a section to the currently active view
addShortcutAdds a new keyboard shortcut
alertCalls an alert message box
assertIf the specified expression is false, an errorMessage is shown in a red popup at the top right corner of the screen
attachEventAttaches the handler to an inner event of dhtmlxScheduler
backboneMakes the scheduler reflect all data changes in the Backbone model and vice versa
batchUpdateUpdates multiple events at once
bindCreates a new function that when called has its this keyword set to the provided value
blockTimeBlocks the specified date and applies the default 'dimmed' style to it.
callEventCalls an inner event
changeEventIdChanges the event's id
checkCollisionChecks whether the specified event occurs at the time that has already been occupied by another event(s)
checkEventChecks whether an event has some handler(s) specified
checkInMarkedTimespanChecks whether an event resides in a timespan of a specific type
checkLimitViolationChecks whether the specified event takes place at the blocked time period
clearAllRemoves all events from the scheduler
closeAllSectionsCloses all sections in the currently active view
closeSectionCloses the specified section in the currently active view
collapseCollapses the expanded scheduler back to the normal size
confirmCalls a confirm message box
copyCreates a deep copy of the provided object
createDataProcessorCreates a new dataProcessor instance and attaches it to scheduler
createGridViewCreates the Grid view in the scheduler
createTimelineViewCreates the Timeline view in the scheduler.
createUnitsViewCreates the Units view in the scheduler
definedReturns false if the provided argument is undefined, otherwise true
deleteAllSectionsDeletes all sections from the currently active view
deleteEventDeletes the specified event
deleteMarkedTimespanRemoves marking/blocking set by the addMarkedTimespan() method
deleteSectionDeletes a section from the currently active view
destroyCalendarDestroys previously created mini-calendar
destructorDestroys a scheduler instance
detachEventDetaches a handler from an event (which was attached before by the attachEvent method)
editOpens the inline editor to alter the event's text (the editor in the event's box)
editStopCloses the inline event editor, if it's currently open
endLightboxCloses the lightbox
eventAttaches an event handler to an HTML element
eventRemoveRemoves an event handler from an HTML element
expandExpands the scheduler to the full screen view
exportToPDFExports a Scheduler into the PDF format
exportToPNGExports a Scheduler into the PNG format
focusSets focus on the scheduler
formSectionGives access to the objects of lightbox's sections
getActionDataReturns the current cursor-pointed date and section (if defined)
getEventReturns the event object by its id
getEventEndDateGets the event's end date
getEventStartDateGets the event's start date
getEventTextGets the event's text
getEventsReturns a collection of events which occur during the specified period
getLabelGets the label of a select control in the lightbox
getLightboxGets the lightbox's HTML object element
getRecDatesReturns all occurrences of a recurring event
getRenderedEventGets the object of the currently displayed event
getSectionGets the object of the specified section in the currently active view
getShortcutHandlerGets a key navigation shortcut handler
getStateGets the current state of the scheduler
getUserDataGets the user data associated with the specified event
getViewReturns a view object by its name. If no name is specified, returns the current view
hideCoverHides the lightbox modal overlay that blocks interactions with the remaining screen
hideLightboxHides the lightbox without saving it
hideQuickInfoHides the pop-up event form (if it's currently active)
highlightEventPositionHighlights the event's duration on the time scale
initA constructor of a dhtmlxScheduler object
invertZonesInverts the specified time zones
isCalendarVisibleChecks whether the calendar is currently opened in the scheduler
isOneDayEventChecks whether the specified event one-day or multi-day
isViewExistsChecks whether a view with the specified name exists
linkCalendar'says' to change the active date in the mini calendar each time, the active date in the scheduler is changed
loadLoads data to the scheduler from an external data source
markCalendarApplies a css class to the specified date
markTimespanMarks and/or blocks date(s) by applying the default or a custom style to them. Marking is cancelled right after any internal update in the app. Can be used for highlighting
messageCalls a message box of the specified type
mixinAdds properties of the 'source' object into the 'target' object
modalboxCalls a modalbox
openAllSectionsOpens all sections in the currently active view (if the opened view isn't Timeline in the 'Tree' mode - the method will be ignored)
openSectionOpens the specified section in the currently active view (if the opened view isn't Timeline in the 'Tree' mode - the method will be ignored)
parseLoads data from a client-side resource
pluginsActivates the specified extensions
removeShortcutRemoves a keyboard shortcut
renderRepaints the scheduler
renderCalendarCreates a mini calendar
renderEventGenerates HTML content for a custom event's box
resetLightboxRemoves the current lightbox's HTML object element
scrollUnitScrolls the specified number of units in the Units view
selectSelects the specified event
serializeSerializes all events loaded into the scheduler
serverListDefines a named collection that can be loaded into Units, Timeline views, or the Lightbox
setCurrentViewDisplays the specified view and date
setEventAdds a new event to the scheduler's data pool
setEventEndDateSets the event's end date
setEventStartDateSets the event's start date
setEventTextSets the event's text
setLightboxSizeForces the lightbox to resize
setLoadModeSets the mode that allows loading data by parts (enables the dynamic loading)
setSkinSets the active skin
setUserDataSets the user data associated with the specified event
showCoverShows the lightbox modal overlay that blocks interactions with the remaining screen
showEventShows and highlights the specified event in the current or specified view
showLightboxOpens the lightbox for the specified event
showQuickInfoDisplays the pop-up event form for the specified event
startLightboxShows a custom lightbox in the specified HTML container centered on the screen
toICalConverts scheduler's data to the ICal format
toJSONConverts scheduler's data into the JSON format
toPDFExports the current view to a PDF document (can be used for printing)
toPDFRangeExports several scheduler's views to a PDF document (can be used for printing)
toXMLConverts scheduler's data into the XML format
uidGenerates a unique ID (unique inside the current scheduler, not GUID)
unblockTimeRemoves blocking set by the blockTime() method
unmarkCalendarRemoves a css class from the specified date
unmarkTimespanRemoves marking/blocking set by the markTimespan() method
unselectUnselects the specified event
updateCalendarDisplays the specified date in the mini calendar
updateCollectionUpdates the specified collection with new options
updateEventUpdates the specified event
updateViewDisplays the specified view and date (doesn't invoke any events)
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.