Hey everyone, hope you're doing well. I am using Angular material paginator on the front end. The Oracle table has 1.3 million records in the DB. I can't fetch all of them at a time(obvious), I need the paginator to make sure to display there are 130k pages assuming 10 records per page (130 k * 10 = 1.3 million). But the problem is material paginator is showing the total records to be the number of records available in the MatDataSource. In my case, I am fetching 30 records initially. The paginator is only showing 3 pages with 10 records per page.
But then, how can I tell the material paginator to show 130k pages and total records as 1.3 million (assuming 10 records per page) with out fetching the data unless I go to a particular page ?
Any leads will be very helpful.
Thank you :)
I am trying to create dynamic table component using Mat Table. I am passing column names and data as input to this component. But when I am changing the column names and data, the table is not refreshing. What am I missing here?
I have now resolved this issue by calling change detection manually in ngOnChanges() setTimeout(() => this.cdr.detectChanges());
selector: 'mat-table, table[mat-table]',
exportAs: 'matTable',
template: CDK_TABLE_TEMPLATE,
styleUrls: ['table.css'],
host: {
'class': 'mat-table',
}