hjalmers / angular-generic-table

A generic table for Angular 2+. Generic table uses standard markup for tables ie. table, tr and td elements etc. and has support for expanding rows, global search, filters, sorting, pagination, export to CSV, column clicks, custom column rendering, custom export values.
https://hjalmers.github.io/angular-generic-table/
MIT License
105 stars 55 forks source link

Init selected rows with lazy loading #299

Open vaydich opened 5 years ago

vaydich commented 5 years ago

I'm trying to init selected rows. Actually i have array with ids but i'm just trying very simple:

options: GtOptions = { lazyLoad: true, rowSelection: this.access.select, rowSelectionInitialState: row => row.id === 1 };

Since my data is loading like lazy (receive from server) there is a problem - row is not select. What is the right way to solve this case?