Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
How to programmatically select a row in igx-grid?
posted

For newer versions of Angular, is there a way to programmatically select a row (either by index or primaryKey)?

I have found several older examples posted to Stackblitz from this forum, but they do not work anymore, and there have been a lot of changes in . The most current is Angular 8 (for future readers, Angular 17 is currently supported).

I am validating features as we consider switching to this grid library, currently in Angular 14: This particular use case is programmatically selecting a row, if it exists (based on the primary key), and then scrolling to the latest row with that primary key, on a refresh of [data].

This works for programmatically scrolling to the row:

this.grid.navigateTo(550, 1);

But all I need help with is selecting the row. Thanks!

Parents Reply Children
No Data