SlickGrid exposes the following events:

  • onScroll
  • onSort
  • onHeaderContextMenu
  • onHeaderClick
  • onMouseEnter
  • onMouseLeave
  • onClick
  • onDblClick
  • onContextMenu
  • onKeyDown
  • onAddNewRow
  • onValidationError
  • onViewportChanged
  • onColumnsReordered
  • onColumnsResized
  • onCellChange
  • onBeforeEditCell
  • onBeforeCellEditorDestroy
  • onBeforeDestroy
  • onActiveCellChanged
  • onActiveCellPositionChanged
  • onDragInit
  • onDragStart
  • onDrag
  • onDragEnd
  • onSelectedRowsChanged
  • onInvalidatedRows
  • onCellCssStylesChanged

You can subscribe to the above events using a syntax similar to:

gridInstance.onXYZEvent.subscribe(function(e,args){
    //event handling code.
});

Event handlers can also be removed with

gridInstance.onXYZEvent.unsubscribe(fn);

相关文章:

  • 2022-02-06
  • 2021-06-06
  • 2021-12-10
  • 2021-11-24
  • 2022-01-28
  • 2021-10-21
猜你喜欢
  • 2021-10-04
  • 2022-01-15
  • 2021-09-20
  • 2022-01-04
  • 2022-01-02
  • 2022-01-21
  • 2021-09-19
相关资源
相似解决方案