angular-generic-table
angular-generic-table copied to clipboard
Init selected rows with lazy loading
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?