Colgroup overriding configured width settings

Colgroup overriding configured width settings

krutovdlkrutovdl Posts: 51Questions: 9Answers: 1

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

  • allanallan Posts: 63,482Questions: 1Answers: 10,467 Site admin

    Happy to take a look at a test case showing the issue so I can debug it.

    Allan

  • krutovdlkrutovdl Posts: 51Questions: 9Answers: 1

    What is required to debug?

  • kthorngrenkthorngren Posts: 21,315Questions: 26Answers: 4,948

    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

  • krutovdlkrutovdl Posts: 51Questions: 9Answers: 1
    edited October 8

    Please use [removed]

  • allanallan Posts: 63,482Questions: 1Answers: 10,467 Site admin

    Your example doesn't run:

    Uncaught ReferenceError: $ is not defined

    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

  • krutovdlkrutovdl Posts: 51Questions: 9Answers: 1

    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%.

  • allanallan Posts: 63,482Questions: 1Answers: 10,467 Site admin

    What's the updated URL please?

  • krutovdlkrutovdl Posts: 51Questions: 9Answers: 1
    edited October 8

    sorry,

    [removed]

  • allanallan Posts: 63,482Questions: 1Answers: 10,467 Site admin

    Thank you - I'll look into it in the morning. I would expect that to collapse down.

    Allan

  • allanallan Posts: 63,482Questions: 1Answers: 10,467 Site admin

    That's giving the error:

    Uncaught ReferenceError: dataSet is not defined

    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

  • krutovdlkrutovdl Posts: 51Questions: 9Answers: 1

    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.

  • allanallan Posts: 63,482Questions: 1Answers: 10,467 Site admin

    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

  • krutovdlkrutovdl Posts: 51Questions: 9Answers: 1

    Allan, did you have a chance to look at this?

  • allanallan Posts: 63,482Questions: 1Answers: 10,467 Site admin

    Not yet - sorry. Quite a backlog at the moment! I'll try to do so soon.

    Allan

  • krutovdlkrutovdl Posts: 51Questions: 9Answers: 1

    Allan, do you still have a backlog?

  • allanallan Posts: 63,482Questions: 1Answers: 10,467 Site admin

    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

Sign In or Register to comment.