Skip to content

SlickGrid & DataView Objects

Ghislain B edited this page Jun 1, 2018 · 13 revisions

In some cases you might want a feature that is not yet available in Angular-Slickgrid but exists in the original SlickGrid, what should you do? Fear not, we got you covered. Angular-Slickgrid exposes the SlickGrid and DataView objects through Event Emitters, these objects are created when Angular-Slickgrid initialize the grid (with ngAfterViewInit). There are 3 options to get access to all these events (For the last 2 you will have to get access to the Grid and the DataView objects which are exposed in Aurelia-Slickgrid):

Event Dispatch

Most recommended way to get Slick Grid/DataView Events

Angular-Slickgrid exposes all the Grid & DataView

  • onDataviewCreated
  • onGridCreated
  • onBeforeGridCreate
  • onBeforeGridDestroy
  • onAfterGridDestroyed

The ones we want to use for our usage would be onGridCreated and onDataviewCreated, depending on which object you want to obtain.

Event Emitter

Angular-Slickgrid have the following Event Emitters that you can hook to

  • onDataviewCreated
  • onGridCreated
  • onBeforeGridCreate
  • onBeforeGridDestroy
  • onAfterGridDestroyed

The ones we want to use for our usage would be onGridCreated and onDataviewCreated, depending on which object you want to obtain.

SlickGrid Events (original SlickGrid)

You have access to all original SlickGrid events which you can subscribe, for more info refer to the Wiki - Grid & DataView Events

Usage

There's already all the necessary information on how to use this on the Wiki - Grid & DataView Events page, so I suggest you to head over to that Wiki page on how to use the SlickGrid and DataView objects

Contents

Clone this wiki locally