Colgroup overriding configured width settings
Colgroup overriding configured width settings
We have a website that is in production and no new code is expected to be added to it. It was originally coded with Datatables version 1. After version 2.0.0 was released, the configured widths were overridden. Then the 2.0.3 release resolved this issue. Recently, because of security requirements we had to update from version 2.0.8 to 2.1.6, which is the latest version as of this day, and the same behavior observed with version 2.0.0 is observed with version 2.1.6. Since this is production code, nothing was changed on our end, but this behavior exists. Please, provide instructions how to get back the expected behavior.
Answers
Happy to take a look at a test case showing the issue so I can debug it.
Allan
What is required to debug?
Provide a link to your page showing the issue or build a test case replicating the issue with the instructions found here:
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
Please use [removed]
Your example doesn't run:
Doesn't look like jQuery or DataTables have been loaded. There might be other things, I'm not sure.
Please provide a link to a page (your own page, JSFiddle, JSBin, anything else, I'm not bothered ) that demonstrates the issue, on load, so I can look into it.
Allan
Hi Allan, I added css and js source links. You can see that the first column is very wide, but its width is configured at 15%.
What's the updated URL please?
sorry,
[removed]
Thank you - I'll look into it in the morning. I would expect that to collapse down.
Allan
That's giving the error:
It looks like your HTML include all the stuff that DataTables renders - the search box etc. I would expect to see that until the DataTable had rendered.
Allan
Hi Allan, Please look at https://jsfiddle.net/0grhqcmy/2/. There is an uncaught exception coming from the dataSet variable but this value is passed in from the server so in real life this would not be an issue. However, the widths are not displaying at the size configured inside the Datatable configuration. This was not an issue in version 2.0.8.
https://jsfiddle.net/dgn4zw9y/ - Your example updated to run.
I'm not sure why
CommentsDttm
is showing so wide. I'll try to make some time in the next week to look into it, but I've got a bit of a backlog at the moment, so I can't say for certain when it will be.Allan
Allan, did you have a chance to look at this?
Not yet - sorry. Quite a backlog at the moment! I'll try to do so soon.
Allan
Allan, do you still have a backlog?
lol - oh yes. Death is probably the only cure to the backlog of support I've got. Sorry I haven't had a chance to look into this yet. I will try to get to it.
Allan