server-side + columnfilter + col width
server-side + columnfilter + col width
Hello ... im new to datatables ( was using tablesorter before) and its an amazing plugin. One thing I'm having some trouble with getting my column widths working after scrolling.
I am using server-side php to get more rows from my table, and bScrollInfinite to use infinite scrolling. When initializing the datatable, I'm using aoColumns and sWidth with a percentage to define the width of my columns since the auto sizing doesnt seem to work right. if I use the columnfilter plugin on the initialization, it doesnt accept my widths at all. So i have tried adding the .columnfilter in my ajax success callback right after calling fnCallback. And that works somewhat the first time. So after loading my page, my table is there with column widths as I set in aoColumns, there is data in the table and the columnFilter is in the footer -- however, the columnFilter column widths are off. Once i scroll down enough to cause more data from the server to get pulled in, the table is redrawn and the column widths are reset to match the (wrong) widths of the column filter.
Any suggestions on how to fix?
Thanks!
I am using server-side php to get more rows from my table, and bScrollInfinite to use infinite scrolling. When initializing the datatable, I'm using aoColumns and sWidth with a percentage to define the width of my columns since the auto sizing doesnt seem to work right. if I use the columnfilter plugin on the initialization, it doesnt accept my widths at all. So i have tried adding the .columnfilter in my ajax success callback right after calling fnCallback. And that works somewhat the first time. So after loading my page, my table is there with column widths as I set in aoColumns, there is data in the table and the columnFilter is in the footer -- however, the columnFilter column widths are off. Once i scroll down enough to cause more data from the server to get pulled in, the table is redrawn and the column widths are reset to match the (wrong) widths of the column filter.
Any suggestions on how to fix?
Thanks!
This discussion has been closed.
Replies
Allan