Closed ricardosaracino closed 1 year ago
Hi @ricardosaracino
thank you for reaching out to us reporting this. I apologize about this upgrade experience. I logged an issue about adding information regarding this change in the Update guide - https://github.com/IgniteUI/igniteui-docfx/issues/3634, so hopefully this will prevent other people from having trouble with the update.
Information about the changes is existing in the feature help topic and in the Changelog:
Wherever in your app the oldSelection
, newSelection
, added
and removed
props are read from IRowSelectionEventArgs
object in the rowSelectionChanging
event, map the row objects collection into a primaryKeys collection:
public handleRowSelection(e: IRowSelectionEventArgs): void {
this.selectedRows = e.newSelection.map(rec => {
return rec[e.owner?.primaryKey]
});
this.complianceListForm.markAsDirty();
}
Update guide now includes information about changes in the rowSelectionChanging event.
Description
I updated from from 15.0.x to 15.1.x and rowSelectionChanging is passing the row instead of the primaryKey
The below code on 15.0 is getting an array of numbers but on 15.1 its getting an array or rows. I am rolling back my upgrade as this breaks a ton of code and its not in the upgrade guide.
https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/update-guide#from-150x-to-151x