Applying any filter overwrites the content of the first cell
Applying any filter overwrites the content of the first cell
Applying any filter overwrites the content of the first (left-most) cell in the first (top) row with the value from the first cell in the last visible row.
This is the demo:
http://low-emission.de/power-supplies-wall-mounting-adjustable-1-output/
(If you use the upper navigation -> Products and choose one point from the left or center column, the same script is used.)
Although the data are loaded via AJAX, no server side processing is used.
To reproduce:
Make a mental note of the content of the left-most cell of the top-most row.
After the page has loaded, use one of the selects in the table head that should not affect the first column, meaning choose the option that matches the value in that column of the first row.
Or:
Open the console of your browser and enter an empty search:
var table = $('#dT_products').DataTable(); table.columns().search('').draw();
Only the content of this one cell is altered (overwritten), the other cells in the first row.
Any help appreciated,
Hans
Answers
Ok, I think I got it fixed. Stupid typing error combined with copy&paste in rowCallback. Will update the demo tomorrow.
Thanks for reading, Hans