Topic: mdb-table-pagination reset pagination after updating datasource
hansdaigle free asked 1 year ago
Hi, I'm populating my data table with back-end data. I would like to set the page to 0 when I refresh the data. How can I control the current page selected in typescript? The pagination is currently breaking when you update the datasource and you are in page > 0. The items go in negative. (item # -7 to 0 of 26 )
<table class="table datatable-table" mdbTable mdbTableSort #table="mdbTable" #sort="mdbTableSort" [sm]="false" [dataSource]="dataSource" [fixedHeader]="true" [sort]="sort" [pagination]="pagination" [filterFn]="customTableFilter" [striped]="false"> ... <mdb-table-pagination #pagination [entries]="8" [entriesOptions]="[8,25,50,100,200,500]" </mdb-table-pagination> ...
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: MDB5 1.6.1
- Device: Mac
- Browser: Chrome
- OS: Any
- Provided sample code: No
- Provided link: No