FixedColumn problem with pagination (serverSide:true)
FixedColumn problem with pagination (serverSide:true)
brycebreeds
Posts: 1Questions: 1Answers: 0
datatables.min.js:16 Uncaught TypeError: Cannot read properties of undefined (reading 'anCells')
this is the error received when paging to page 2 on my table. Unfortunately i cannot post links to my table.
is this a know problem? can it be investigated?
Answers
I was able to replicate the issue with this test case:
https://live.datatables.net/yaroyala/4/edit
@allan will need to take a look.
Kevin
Hello I have the exact same issue when paging to page 2 :
package.json :
Thanks for your help
Charles
If you update to DataTables 2.0.8 the issue should now be resolved.
Allan
I have same issue
/*! FixedColumns 5.0.0
* © SpryMedia Ltd - datatables.net/license
*/
have you solve the problem? how?
@eggys What version of Datatables are you using?
Looks like the issue was fixed in the Datatables library not FixedColumns. Use the Download Builder to get the latest versions.
Kevin
@eggys I'd suggest you update to FixedColumns 5.0.3 and also update any other DataTables software you are using. If you still have a problem after that, post a link to a test case showing the issue, and I'll take a look.
Allan
In @kthorngren 's test case, I also observe header misalignment issue. It would be appreciate that can have a look too.
It seems that the padding is not the only cause of the misalignment!?
In this post I thought it was related to the padding, but it seems that the main cause is the use of
scrollX
. (More generally, if the horizontal scrollbar is shown even whenscrollX: false
)https://live.datatables.net/yaroyala/53/edit?html,js,output
(I updated to FixedColumns 5.0.3 in the test case)
The issue occurs when you switching to different pages.
Note that switching from page 1 to page 2 may not be enough to see the misalignment. I only see it clearly on page 3.
Chrome Version 129.0.6668.101 (Official Build) (64-bit) on Win 10
Thanks @choc.
I can see it going the other way:
Damn I hate column alignment issues. It is truly the worst part of maintaining DataTables.
This was Firefox 128 / KDE.
Allan
Could you try the current nightly please? Make sure you include the query string so you don't get an old cached version.
Allan