Hi, I am using metronic_html_v8.2.7_demo7 Datatables.
$('#categories_list').DataTable({responsive: false})
Even if use responsive:true or responsive false its automatically adds
<colgroup></colgroup> markup to table. that shouldn't added automatically
i want to use my own <colgroup> markup in html
Kindly guide me if there is any configuration
Hi,
This looks like the Datatable.net plugin's default behavior and is probably a bug. Can you please report this issue via https://datatables.net/forums/
We will double-check for any case on our end as well.
Regards,
Sean
Hi,
I found answer about this on datatables.net by author
"Yes, I'm afraid that is correct. DataTables will now inject its own colgroup which is used for sizing. Sorry, but it was the best way to get the sizing to work and merging an existing tag was proving to be quite complex."
This was added in after v2.0 that's very strange behavior.
columnDefs:[] is solution for this but control column width from html is very easy as compare to add columnDefs:[] is Datatables configuration.
Hi,
Thanks for sharing this info. This is how datatable 2.0 works now.
Regards,
Sean