Are you using some other extensions of dataTable like pagination? I think I encountered this before and fixed it by removing some extensions.
|
on Sep 14, 2017 •
commented
Is the number of columns changing? I'm having the same problem, but it seems like it only occurs when the number of columns changes. For some reason, dataTables is keeping remnants of the number of columns from the previous iteration, and not destroying the previous table. I do have destroy set to true.
|
Sorry for late response. In my opinion, this is indeed related to the number of columns. Make sure you have the same number of
<th> and <td> on your html. |
yajra added javascript question labels on Sep 15, 2017
on Sep 15, 2017 •
commented
The issue for me was that remnants of the columns hang around, so I had to destroy those remnants:
I saved the table node, destroyed it completely, then recreated it and that resolved my issues.
|
my problem is still exists. so i think im not going to use this feature. hehe
Thanks for the response.
|
nusendra closed this on Sep 15, 2017
on May 2, 2018 •
commented
put
<th></th> in your table
and use like this
`function format(d) {
" +// console.log(d); var data = " "" + "" + "" + "" + "" + "" + "" + "" + //"" + "";
}
`
|
thanks @gordett. im not using datatables anymore. I'm build my own table component with vuejs
thanks for your reply
|
on May 10
commented
Hi, I have the issue of using jquery datatable in angular.The issue is my th and td both are from API but it works properly for first time and second time its shows correct data but the filter and search will work for previous data only.
Anyone can help to solve this issue. |
0 Comments
Thanks for comment.