-1

For users who are getting the mentioned error while using angular slick-grid : Angular slick grid needs a column named 'id' for each row.

Anish Kutti
  • 337
  • 2
  • 7

1 Answers1

0

From typescript, after getting the data from the api, you can call other function which will do the following

addId() {
this.apiData.forEach((item, index) => {
  item.ids = index+1;
}
);
this.datasetRecords = this.apiData;

}

// assign the datasetRecords to the angular grid

Anish Kutti
  • 337
  • 2
  • 7