Skip to main content

Events overview

NameDescription
onAfterAutoScheduleFires when autoscheduling is done
onAfterBatchUpdateFires after the batchUpdate method was called
onAfterBranchLoadingIf dynamic loading is enabled, fires after the task branch was loaded to the page
onAfterLightboxFires after the user has closed the lightbox (edit form)
onAfterLinkAddFires after a new link is added to the Gantt chart
onAfterLinkDeleteFires after the user deletes a link
onAfterLinkUpdateFires after the user updates a link
onAfterQuickInfoFires after the pop-up edit form is closed
onAfterRedoFires after the redo() method was called
onAfterRowResizeFires after resizing of the row height is finished
onAfterSortFires after tasks are sorted in the grid
onAfterTaskAddFires after the user adds a task to the Gantt chart
onAfterTaskAutoScheduleFires for each task which has been autoscheduled
onAfterTaskDeleteFires after the user deletes a task
onAfterTaskDragFires after the user has finished to drag and released the mouse button
onAfterTaskMoveFires after a task was moved to a new vertical position
onAfterTaskUpdateFires after the user updates a task
onAfterUndoFires after the undo() method was called
onAjaxErrorFires if the server returns an error
onAutoScheduleCircularLinkFires if some dependency loops were found during auto scheduling
onBeforeAutoScheduleFires before auto scheduling
onBeforeBatchUpdateFires before the batchUpdate method is called
onBeforeBranchLoadingIf dynamic loading is enabled, fires after a user expands the task branch but before loading starts
onBeforeCollapseBefore gantt exits the fullscreen mode and goes back to normal mode
onBeforeDataRenderFires before data is rendered on the page
onBeforeExpandFires before gantt is expanded to full screen
onBeforeGanttReadyFires before the dhtmlxGantt initialization is started
onBeforeGanttRenderFires before the Gantt chart is rendered on the page
onBeforeLightboxFires immediately before the user opens the lightbox (edit form)
onBeforeLinkAddFires before a new link is added to the Gantt chart
onBeforeLinkDeleteFires before the user deletes a link
onBeforeLinkDisplayFires after the links have been loaded to the Gantt chart but before they are displayed
onBeforeLinkUpdateFires before a link is updated
onBeforeMultiSelectFires before selecting a task or a range of tasks
onBeforeParseFires before data started to be parsed
onBeforeRedoFires before the redo() method is called
onBeforeRedoStackFires before an action is added into the redo stack
onBeforeRollupTaskDisplayFires before the rollup task is displayed on its parent project
onBeforeRowDragEndFires when a user drops a row in the grid
onBeforeRowDragMoveFires before a row of the grid is dragged vertically to a different position
onBeforeRowResizeFires before the user starts to resize the row height by drag-and-drop
onBeforeRowResizeEndFires before resizing of the row height is completed
onBeforeSplitTaskDisplayFires before a part of the split task is displayed on the Gantt chart
onBeforeTaskAddFires before a new task is added to the Gantt chart
onBeforeTaskAutoScheduleFires for each task which is rescheduled
onBeforeTaskChangedFires after the user has finished dragging and released the mouse button but before the changes are applied
onBeforeTaskDeleteFires before the user deletes a task
onBeforeTaskDisplayFires after the tasks have been loaded to the Gantt chart, but before they are displayed
onBeforeTaskDragFires after the user has pressed the mouse button and started dragging, but before dhtmlxGantt starts the drag-and-drop operation
onBeforeTaskMoveFires before a task is moved to a new vertical position
onBeforeTaskMultiSelectFires before the task selection state is being changed (the task is being selected or unselected)
onBeforeTaskSelectedFires before the user selects a task
onBeforeTaskUpdateFires before the user updates a task
onBeforeUndoFires before the undo() method is called
onBeforeUndoStackFires before an action is added into the undo stack
onCircularLinkErrorFires when the circular reference has been detected and auto scheduling is not possible
onClearFires after all tasks were removed from the Gantt chart by the clearAll method
onCollapseFires when gantt went back to normal mode from the full screen mode
onColumnResizeFires when the user is dragging the column's border to resize the column
onColumnResizeEndFires after the user finished dragging the column's border to resize the column
onColumnResizeStartFires before the user starts to drag the column's border to resize the column
onContextMenuFires when a user clicks the right mouse button inside the Gantt chart (see the details)
onDataProcessorReadyFires on the dp.init(gantt) call
onDataRenderFires after data has been rendered on the page
onDestroyCalled after gantt has been cleared by the destructor method
onEmptyClickFires when the user clicks on an empty space in the Gantt chart (not on tasks)
onErrorFires when assert receives 'false' value, i.e. when assertion fails
onExpandFires when gantt is expanded to full screen
onGanttLayoutReadyFires after the Gantt layout is ready, but before it is rendered
onGanttReadyFires after the dhtmlxGantt initialization is complete but the Gantt chart is not rendered on the page yet
onGanttRenderFires after the Gantt chart was rendered on the page
onGanttScrollFires when the Gantt chart is scrolled to a particular point
onGridHeaderClickFires when the user clicks on the grid's header
onGridResizeFires when the user is dragging the grid's border to resize the grid
onGridResizeEndFires after the user finished dragging the grid's border to resize the grid
onGridResizeStartFires before the user starts to drag the grid's border to resize the grid
onLightboxFires after the user has opened the lightbox (edit form)
onLightboxButtonFires when the user clicks on a custom button in the lightbox
onLightboxCancelFires when the user clicks on the 'Cancel' button in the lightbox
onLightboxChangeFires when the structure of the lightbox is changed
onLightboxDeleteFires when the user clicks on the 'Delete' button in the lightbox
onLightboxSaveFires when the user clicks on the 'Save' button in the lightbox
onLinkClickFires when the user clicks on a link
onLinkCreatedFires when a user creates a new link between tasks
onLinkDblClickFires when the user double clicks on a link
onLinkIdChangeFires when the id of a link is changed
onLinkValidationFires when the user adds a new link and dhtmlxGantt checks whether the link is valid
onLoadEndFires after loading data from the data source has been completed
onLoadStartFires immediately before loading data from the data source has been started
onMouseMoveFires when the mouse is moved over the gantt container
onMultiSelectFires after selection of a task or a range of tasks has been completed
onOptionsLoadFires after a collection of options has been loaded from the server, but isn't parsed yet
onParseFires after data was parsed (became available for API) but before it was rendered in the Gantt chart
onQuickInfoFires when the pop-up edit form appears
onRowDragEndFires after the user drops a vertically reordered row in the grid
onRowDragStartFires before the user drags a row of the grid to vertically reorder it
onRowResizeFires when the user is dragging the border of the row to resize the row height
onScaleAdjustedFires when the scale is re-rendered in order to display all tasks completely
onScaleClickFires when the user clicks on the cell in the time scale
onTaskClickFires when the user clicks on a task row in the grid area (including the 'expand/collapse' and 'add task' buttons) or on a task bar in the timeline area
onTaskClosedFires when a branch has been closed
onTaskCreatedFires when a user creates a new task by pressing the'+' button in a grid, or when the createTask method is called
onTaskDblClickFires when the user double clicks on a task
onTaskDragFires when the user drags a task
onTaskIdChangeFires when the id of a task is changed
onTaskLoadingFires when a task is being loaded from the data source
onTaskMultiSelectFires after the task selection state has changed (the task has been selected/unselected)
onTaskOpenedFires when a branch has been opened
onTaskRowClickFires when the user clicks on a row in the table
onTaskSelectedFires when the user selects a task
onTaskUnselectedFires when the user unselects a task by selecting some other task
onTemplatesReadyFires when the dhtmlxGantt templates are initialized