-
Notifications
You must be signed in to change notification settings - Fork 159
Description
Description
If the underlying model for a grid row has an ID (appears to not be case sensitive) row selection doesn't work.
- igniteui-angular version: latest
- browser: Firefox
Steps to reproduce
- Go to https://www.infragistics.com/products/ignite-ui-angular/angular/components/grid/row-selection
- Open the stackblitz example
- Change the ID in the financialData.ts to another property. (Foo)
- Update the grid-selection.component.html primary key to that property [primaryKey]="'Foo'"
- Test the component.
Result
What is the actual result after following the steps to reproduce?
Notice that any selection will select all options. If you listen to the events, all rows will get selected.
If you go back to the financialData.ts and add the ID (but keep your other change also adding foo
dataObj.Foo = i;
dataObj.ID = i;
Notice that row selection now works. I have no idea if it is respecting the primary key or if it is just using ID.
Expected result
What is the expected result after following the steps to reproduce?
I expect to not be required to have ID be an attribute of any models that I want to use within the grid. I also expect to be able to set the primary key on the row.
Attachments
Attach a sample if available, and screenshots, if applicable.