0
votes

How do we get selected row data in angular-slickgrid(2.26). I am able to do that in regular slickgrid this way:

grid.onClick.subscribe(function (e, args) {
    var item = args.grid.getData()[args.row];
    selectedFromGrid = item.ConfigurationId;
});

How do I do the same thing in angular-slickgrid?

I used to do the following but after updating angular-slickgrid to the latest I started to get GridExtraUtils not found error.

   gridReady(grid) {
grid.onClick.subscribe((e, args) => {
  const column = GridExtraUtils.getColumnDefinitionAndData(args);
  this.router.navigate(['/printclaim/' + column.dataContext.ClaimID]);
});

}

1
GridExtraUtils doesn't exist so yes the message is correct - ghiscoding

1 Answers

0
votes

Just read the Wiki - SlickGrid & DataView Objects

If you want the current row selection, you can get it from SlickGrid with grid.getSelectedRows() or via the Grid State from Angular-Slickgrid, there's also a Wiki - Grid State & Preset

You should really look at all the Wikis...