Available events
(see below for full list of events)
All the events are published with a data payload in a CustomEvent, so you will typically find the payload under the detail property of the CustomEvent. However please note that the events from SlickGrid and SlickDataView, shown at the bottom of the list, are published with a different structure which is also including the JS event that it was triggered with under the property eventData and the payload itself is under the args property (which follows original SlickGrid structure). To subscribe to all events, you can use your PubSub instance (if available) or add listeners on your grid container DOM element.
SlickGrid and SlickDataView
SlickGrid and SlickDataView// 1. with PubSub instance
this.aureliaGrid.instances?.eventPubSubService?.subscribe('onCellChange', (payload) => console.log('PubSub, cell changed data:', payload));
// 2. with CustomEvent in the View (see html code below)
handleOnCellChange(e, args) {
// `eventData` is the event it was triggered from and `args` is the data payload
const { eventData, args } = e.detail;
const dataContext = args?.item;
console.log('cell changed data:', args);
}<!-- 2. with CustomEvent in the View -->
<aurelia-slickgrid
grid-id="gridId"
columns.bind="columnDefs"
options.bind="gridOptions"
dataset.bind="myDataset"
on-cell-change.trigger="handleOnCellChange($event.detail)">
</aurelia-slickgrid>all other events
// 1. with PubSub instance
this.aureliaGrid.instances?.eventPubSubService?.subscribe('onHeaderMenuCommand', (payload) => console.log('PubSub, header menu command', payload));
// 2. with CustomEvent in the View (see html code below)
handleOnHeaderMenuCommand(e) {
// detail is the args data payload
const args = e.detail;
console.log('header menu command', args);
}<!-- 2. with CustomEvent in the View -->
<aurelia-slickgrid
grid-id="gridId"
columns.bind="columnDefs"
options.bind="gridOptions"
dataset.bind="myDataset"
on-header-menu-command.trigger="handleOnHeaderMenuCommand($event.detail.eventData, $event.detail.args)">
</aurelia-slickgrid>CellExternalCopyManager (extension)
onCopyCellsonCopyCancelledonPasteCellsonBeforePasteCell
Context Menu / Cell Menu (extension)
onContextMenuClearGroupingonContextMenuCollapseAllGroupsonContextMenuExpandAllGroupsSlick Events
onAfterMenuShowonBeforeMenuShowonBeforeMenuCloseonCommandonOptionSelected
Column Picker (extension)
onColumnPickerColumnsChangedSlick Events
onColumnsChanged
Grid Menu (extension)
onGridMenuMenuCloseonGridMenuBeforeMenuShowonGridMenuAfterMenuShowonGridMenuClearAllPinningonGridMenuClearAllFiltersonGridMenuClearAllSortingonGridMenuColumnsChangedonGridMenuCommandSlick Events
onAfterMenuShowonBeforeMenuShowonBeforeMenuCloseonColumnsChangedonMenuCloseonCommand
Header Buttons (extension)
onHeaderButtonCommand
Header Menu (extension)
onHeaderMenuCommandonHeaderMenuColumnResizeByContentonHeaderMenuBeforeMenuShowonHeaderMenuAfterMenuShow
Filter Service
onBeforeFilterClearonBeforeSearchChangeonFilterCleared
Grid Service
onHideColumnsonItemsAddedonItemsDeletedonItemsUpdatedonItemsUpserted
GridState Service
onFullResizeByContentRequestedonGridStateChanged
Pagination Service
onBeforePaginationChangeonPaginationChangedonPaginationRefreshedonPaginationPresetsInitializedonPaginationVisibilityChangedonPaginationSetCursorBased(for GraphQL only)
Resizer Service
onGridBeforeResizeonGridAfterResizeonBeforeResizeByContentonAfterResizeByContent
Sort Service
onSortClearedonSortChangedonBeforeSortChange
TreeData Service
onTreeFullToggleStartonTreeFullToggleEndonTreeItemToggled
Aurelia-Slickgrid Component
onBeforeGridDestroyonAfterGridDestroyedonBeforeGridCreateonDataviewCreatedonGridCreatedonAureliaGridCreatedonGridStateChanged
SlickGrid
onActiveCellChangedonActiveCellPositionChangedonAddNewRowonAfterSetColumnsonAutosizeColumnsonBeforeAppendCellonBeforeCellEditorDestroyonBeforeColumnsResizeonBeforeDestroyonBeforeEditCellonBeforeFooterRowCellDestroyonBeforeHeaderCellDestroyonBeforeHeaderRowCellDestroyonBeforeRemoveCachedRowonBeforeSetColumnsonBeforeSortonBeforeUpdateColumnsonCellChangeonCellCssStylesChangedonClickonColumnsReorderedonColumnsDragonColumnsResizedonColumnsResizeDblClickonCompositeEditorChangeonContextMenuonDblClickonDragonDragInitonDragStartonDragEndonFooterClickonFooterContextMenuonFooterRowCellRenderedonHeaderCellRenderedonHeaderClickonHeaderContextMenuonHeaderMouseEnteronHeaderMouseLeaveonHeaderMouseOveronHeaderMouseOutonHeaderRowCellRenderedonHeaderRowMouseEnteronHeaderRowMouseLeaveonHeaderRowMouseOveronHeaderRowMouseOutonKeyDownonMouseEnteronMouseLeaveonPreHeaderClickonPreHeaderContextMenuonRenderedonScrollonSelectedRowsChangedonSetOptionsonActivateChangedOptionsonSortonValidationErroronViewportChanged
SlickDataView
onBeforePagingInfoChangedonGroupExpandedonGroupCollapsedonPagingInfoChangedonRowCountChangedonRowsChangedonRowsOrCountChangedonSelectedRowIdsChangedonSetItemsCalled
Last updated