Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grid Selection --- 8.2.x #5651

Merged
merged 116 commits into from
Aug 26, 2019
Merged

Grid Selection --- 8.2.x #5651

merged 116 commits into from
Aug 26, 2019

Conversation

ddincheva
Copy link
Contributor

@ddincheva ddincheva commented Aug 15, 2019

Closes #4989

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code
  • This PR includes API docs for newly added methods/properties
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes
  • This PR includes behavioral changes and the feature specification has been updated with them

ddincheva and others added 30 commits July 24, 2019 10:07
@zdrawku zdrawku added 💥 status: in-test PRs currently being tested and removed ❌ status: awaiting-test PRs awaiting manual verification labels Aug 23, 2019
@ddincheva ddincheva requested a review from ChronosSF August 23, 2019 08:27
projects/igniteui-angular/src/lib/core/grid-selection.ts Outdated Show resolved Hide resolved
projects/igniteui-angular/src/lib/core/grid-selection.ts Outdated Show resolved Hide resolved
projects/igniteui-angular/src/lib/core/grid-selection.ts Outdated Show resolved Hide resolved

public getRowDataByID(rowID) {
if (!this.grid.primaryKey) { return rowID; }
const rowIndex = this.getRowIDs(this.grid.gridAPI.get_all_data()).indexOf(rowID);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you have to map all PKs from the "get_all_data" collection just to get the record matching the rowID by index?

It will be faster if you just search for the record matching the rowID and breaking the search on a match.

CHANGELOG.md Outdated Show resolved Hide resolved
projects/igniteui-angular/src/lib/core/grid-selection.ts Outdated Show resolved Hide resolved
projects/igniteui-angular/src/lib/grids/row.component.ts Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@zdrawku zdrawku added ✅ status: verified Applies to PRs that have passed manual verification and removed 💥 status: in-test PRs currently being tested labels Aug 23, 2019
@zdrawku zdrawku requested review from ChronosSF and Lipata August 23, 2019 14:42
ChronosSF
ChronosSF previously approved these changes Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Grid selection issues
5 participants