trouble with hidden column

trouble with hidden column

hank scorpiohank scorpio Posts: 7Questions: 1Answers: 0
edited August 2009 in General
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!

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 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: http://datatables.net/api#fnUpdate

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

    Rookie mistake. :)
This discussion has been closed.