trouble with hidden column

trouble with hidden column

hank scorpiohank scorpio Posts: 7Questions: 1Answers: 0
edited August 2009 in General

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:

Any ideas?



  • allanallan Posts: 62,448Questions: 1Answers: 10,251 Site admin
    Hi hank,

    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:

  • hank scorpiohank scorpio Posts: 7Questions: 1Answers: 0
    D'oh! Thanks, Allan.

    Rookie mistake. :)
This discussion has been closed.