Datatables cell value updating only when refresh the page.
Datatables cell value updating only when refresh the page.
aatish
Posts: 7Questions: 2Answers: 0
I have star rating in last column through javascript,
1.when i update my rating through on click its updating in database but not in datatable.
2. Beacuse of this ,i am not able search or sort in last column with updated data.
Any solution?
Here is code:
http://debug.datatables.net/uyidet
This discussion has been closed.
Answers
try this one requestsTable.ajax.reload();
What is the code for the function ratingData();
@ThomD , the function ratingData() is to get ratings in the form of stars by users rating.
Thanks Alibah but reloading the table again on each ajax api call,it will effect on performance
You will need to show us the code for ratingData().
@ThomD, You can check ratingdata() code on below link.
http://stackoverflow.com/questions/32651041/datatables-cell-value-updating-only-when-refresh-the-page/32654371#32654371