Answer the question
In order to leave comments, you need to log in
Has anyone seen examples of using DataTables + Ember with server side sorting and pagination?
Hello!
Trying to master Ember + DataTables. There is nothing complicated until it comes to the fact that all sorting, searching and pagination actions should be on the server side.
Those. we initially load 10 records into DataTables and that's it. Next, we load records from the database according to the corresponding action (sort, change page).
Maybe someone saw an example or tried to implement it himself?
Or maybe there are other options for solving pagination, filtering and searching for tables?
Help! :)
Answer the question
In order to leave comments, you need to log in
I did but for angular. The bottom line is that during server processing, you need to submit a function to the ajax parameter when configuring the table. This function will receive as input one of the parameters all data about the table, including sorting, filter, page, and so on. Then you simply send the data you need from this by Ajax to the server and, upon response, bind the page, synchronizing it with the scope if necessary
. . DataTables sends all columns and other service information.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question