You need to sign in to do that
Don't have an account?
Scott.Eng
jQuery Datatables - column search causing auto-width to stop working?
Hello, I'm using the jQuery Datatables plugin. I've implemented individual column searching/filtering using this example:
https://datatables.net/examples/api/multi_filter.html
Normally, the columns are intelligently sized based on the data in the column. However, I've noticed that when the column searching is implemented, the column width auto-sizing stops working. Instead, each column has the same width (e.g. if there are 5 columns, each is then 20%).
Has anyone encountered this, and know of a way to get the "intelligent" column auto-sizing to work with the .search()?
https://datatables.net/examples/api/multi_filter.html
Normally, the columns are intelligently sized based on the data in the column. However, I've noticed that when the column searching is implemented, the column width auto-sizing stops working. Instead, each column has the same width (e.g. if there are 5 columns, each is then 20%).
Has anyone encountered this, and know of a way to get the "intelligent" column auto-sizing to work with the .search()?
KevinP
I had this issue once with an *old* version of datatables. are you using the latest version?