colgroup

colgroup

eefeef Posts: 7Questions: 2Answers: 0

Hi all,

Does anyone know why column widths specified in a colgroup->col-tag's style is overwritten/ignored by DataTables?
AutoWidth:false, has no positive effect. I am aware that in DataTables's column definition you can set the width. But IMHO, that's the wrong place, styling should be done through CSS.

When I first define the table in Javascript as one (giant) string and 'give' it to DataTables, the widths are taken into account. When I build the table width jQuery, widths are lost, even though the column classes are there.

I'm on version 1.10.18

Thanks in advance,
Eef

Answers

  • allanallan Posts: 62,992Questions: 1Answers: 10,367 Site admin

    Hi,

    The colgroup / col tags are not currently supported in DataTables I'm afraid. At least not directly. They generally will work, but not under all circumstances - for example if you enable scrolling then they won't work.

    Can you give me a link to your page so I can take a look please?

    Thanks,
    Allan

This discussion has been closed.