Problems with Colvis and Columnfilter
Problems with Colvis and Columnfilter
First, i cant setup columnfilter at all, i have the js, i also initialize it ( oTable.columnFilter();) but the inputs wont appear, all i get is a regular tfoot on my table, any ideias why this might happen?
But Colvis i can set it up fine, it works for hiding columns, but when i want to show them back the header will duplicate and the server is loading data msg freezes in the middle of the table.
pic
http://i54.tinypic.com/29upqgy.jpg
thanks!!!
(got this captcha when uploading this pic http://i53.tinypic.com/nwzcy1.jpg)
But Colvis i can set it up fine, it works for hiding columns, but when i want to show them back the header will duplicate and the server is loading data msg freezes in the middle of the table.
pic
http://i54.tinypic.com/29upqgy.jpg
thanks!!!
(got this captcha when uploading this pic http://i53.tinypic.com/nwzcy1.jpg)
This discussion has been closed.
Replies
any way to fix it?
if you're doing something strange in html or css that keeps the thead and tfoot from going invisible, you'll show 2 headers or footers.
i added this to the colvis.css
div.dataTables_scrollBody table.display thead th{
display: none; }
it works, the thead doesnt duplicate anymore, but i still couldnt remove the msg saying processing and when the page loads the cells are not aligned with the head (but they get aligned after hiding and showing one column).
picture showing the problem
http://i51.tinypic.com/106ere1.jpg
thanks a lot!!
if the "Processing..." message doesn't go away, that might be a sign that your code is halting somewhere in the process. have you checked the debugger for errors?
http://i54.tinypic.com/11s36n6.jpg
i tried to use fnAdjustColumnSizing() but i wont do anything.. tried to put on callback from fnServerdata and other places too.. but nothing happens.
thanks for all the help
Obviously something is wrong. Your datatable instance looks like it got clobbered or something. or maybe your oTable variable is out of scope when you call this.