Skip to content

igx-grid - pre-select rows #6653

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

Closed
lalo-mx opened this issue Feb 10, 2020 · 4 comments · Fixed by #7717
Closed

igx-grid - pre-select rows #6653

lalo-mx opened this issue Feb 10, 2020 · 4 comments · Fixed by #7717
Assignees
Labels
size: S 🧰 feature-request ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.

Comments

@lalo-mx
Copy link

lalo-mx commented Feb 10, 2020

Is your feature request related to a problem? Please describe.

I want to pre-select rows in a grid

Describe the solution you'd like

a) I would like to be able to pre-select rows as a property of the grid
b) I would like that the grid emits an event when the data is fully loaded so i can select the rows with selectRows

Describe alternatives you've considered

Set a timeout to wait for the rows to be rendered.

Additional context

Sample of pre-select rows https://stackblitz.com/edit/angular-qzbw2o

@github-actions
Copy link

github-actions bot commented May 9, 2020

There has been no recent activity and this issue has been marked inactive.

@github-actions github-actions bot added the status: inactive Used to stale issues and pull requests label May 9, 2020
@zdrawku zdrawku removed the status: inactive Used to stale issues and pull requests label May 20, 2020
@zdrawku zdrawku reopened this May 20, 2020
@kdinev
Copy link
Member

kdinev commented Jun 15, 2020

Related #6974

@radomirchev
Copy link
Contributor

@lalo-mx , the feature request is in the list for the current milestone. You could follow the milestone progress on the Roadmap board or in the Roadmap file.

@jackofdiamond5
Copy link
Member

Hi @lalo-mx, we've created a PR, with the needed changes, that will allow you to bind to a selectedRows input property. So now you will be able to do something like this:

<igx-grid [data]="myData" rowSelection="multiple" primaryKey="MyColumn" [selectedRows]="myRowIds"></igx-grid>

This means that we don't need an event on which to attempt and select rows because now it can be easily achieved using property binding alone. Additionally, with the grid being virualized, meaning its data gets loaded in chunks, we don't really have a situation where all of the data has just been loaded.

Please feel free to add any additional notes/comments or ask us any questions about the feature.

@jackofdiamond5 jackofdiamond5 added ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged. and removed 🛠️ status: in-development Issues and PRs with active development on them labels Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: S 🧰 feature-request ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants