Skip to content
ghiscoding edited this page Dec 12, 2022 · 4 revisions

Index

Event

You can subscribe to a SlickGrid Event (not an Observable) named onSelectedRowsChanged and hook a callback function to it.

// args is an object returning: { rows: number[] }
grid.onSelectedRowsChanged.subscribe((e, args) => {
  console.log('onSelectedRowsChanged', args);
});

Refer to the Wiki - Grid On Events to know how to connect an Event.

Register a Plugin

You can register a Plugin or multiple Plugins by calling registerPlugins from the Grid Options. The property accept a single Plugin or an array of Plugins.

Grid Option

To enable/disable Row(s) Selection, you can call the enableRowSelection flag in the Grid Options. You could also choose to select the active row (false by default) by calling rowSelection: { selectActiveRow: true; }

this.gridOptions = {
  registerPlugins: myPlugin
}

OR multiple Plugins

this.gridOptions = {
  registerPlugins: [myPlugin1, myPlugin2]
}

Contents

Clone this wiki locally