trouble with hidden column
trouble with hidden column
hank scorpio
Posts: 7Questions: 1Answers: 0
Hey!
Using Datatables with dynamic input from a PHP script, I'm able to display columns and do everything perfectly, but when I add the code to make a column hidden, I see two sets of navigation above and below the table.
Here's a link:
http://inkyfever.com/customer/fp/admin/edit.php
Any ideas?
Thanks!
Using Datatables with dynamic input from a PHP script, I'm able to display columns and do everything perfectly, but when I add the code to make a column hidden, I see two sets of navigation above and below the table.
Here's a link:
http://inkyfever.com/customer/fp/admin/edit.php
Any ideas?
Thanks!
This discussion has been closed.
Replies
Yup got a good idea what's going on - thanks for the link - makes life much easier!
Looks like you are initialising the table twice - once here:
$('#products').dataTable( { ...
and once here:
oTable = $('#products').dataTable( );
And that's what's resulting in the double nav (etc) controls. If you are just updating a table cell then you probably want to use fnUpdate: http://datatables.net/api#fnUpdate
Regards,
Allan
Rookie mistake. :)