How top make server side datatable


Topic: How top make server side datatable

modadvisor premium asked a year ago

Dear Sir

I want to create server side datatable ? can you share any example please ?


Magdalena Dembna staff premium commented a year ago

Can you elaborate on what do you wish to achieve? What sort of technology are you using? Have you run into any specific problems?

Best regards, Magdalena


modadvisor premium commented a year ago

@Magdalena Dembna my backend is in laravel. and i am having mdb-vue theme. i am trying to use datatable and want to do server side (axios) integarion to get data from server side and display. sorting,pagination, searching everthing need to work server side. for example i am having 1M records in db so i can not load all records at a time in datable so i need to get records when called axios to server and get fix number of records. Thanks


Magdalena Dembna staff premium answered a year ago

Unfortunately, our external API examples don't apply to your case as it loads all entries at once and we don't emit an event when the page is changed: https://mdbootstrap.com/docs/vue/tables/datatables/#external-api

I will create a task for us to address this issue in the future. Best regards, Magdalena


rockycastaneda pro premium priority commented 6 months ago

Has this ever been addressed? this post was 9 months ago.


Mikołaj Smoleński staff commented 6 months ago

In the latest MDB5 Vue Datatable we have a render event that emits on every page change. It can be useful in your case.

Keep coding,  Mikołaj from MDB


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 6.7.1
  • Device: PC
  • Browser: google chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No