Aync update iTotalRecord on datatables
Aync update iTotalRecord on datatables
Hi,
We are considering to use datatables to render the search result. The first page of the result data come back from server very fast. However, the query to get the total number of records takes much longer time.
I am just wondering if it is possible to have two separate ajax calls. First call is to get the first page data and render the grid. Second ajax call will get the count of total records which takes much longer time, when it returns, the number of total records iTotalRecord will be updated.
Please advise if it is doable.
Thanks,
Annie
We are considering to use datatables to render the search result. The first page of the result data come back from server very fast. However, the query to get the total number of records takes much longer time.
I am just wondering if it is possible to have two separate ajax calls. First call is to get the first page data and render the grid. Second ajax call will get the count of total records which takes much longer time, when it returns, the number of total records iTotalRecord will be updated.
Please advise if it is doable.
Thanks,
Annie
This discussion has been closed.