Topic: Changing datatable data in background without pagination reset
Christian Aichner
pro premium asked a year ago
Greetings.
I was wondering, if it is possible to update the datatable data in the background, without the pagination jumping back to 1 each time the data changes. (I would like stay on the same page)
This currently makes work with live data hell.
Best regards, Chris
Jakub Chmura
staff premium answered a year ago
Try tu use disableRetreatAfterSorting prop in your datatable.
Please let me know if you have achieved it.
Best, Kuba
Christian Aichner pro premium commented a year ago
Perfect. Had no time to test it in a live environment but it seems to be working with local tests.
Jakub Chmura staff premium commented a year ago
Nice to hear that your problem was solved.
Best, Kuba
Resolved
- User: Pro
- Premium support: Yes
- Technology: React
- MDB Version: 4.22.1
- Device: Desktop
- Browser: Google Chrome
- OS: Windows 10 Professional
- Provided sample code: No
- Provided link: No