Warning message using Show/Hide Column

Warning message using Show/Hide Column

michaeljerumichaeljeru Posts: 5Questions: 0Answers: 0
edited July 2010 in General
I'm using the Show/Hide functionnality to hide or show dynamically a column from my table, using the code in the example : url=http://datatables.net/beta/1.7/examples/api/show_hide.html.
It's working fine, but I have a warning at each call of the function :


DataTables warning: Unable to re-initialise DataTable. Please use the API to make any configuration changes required.


How to get rid of that message ?

Thanks for your help

Replies

  • semseosemseo Posts: 9Questions: 0Answers: 0
    Hi,
    I am having the same problem. I have tried using:
    if (typeof oTable == 'undefined') { ... } else{...}
    - example from: http://www.codeunit.co.za/2010/03/24/jquery-datatables-how-to-reload-a-tables-data/
    but that does not help.

    Any ideas?

    Thanks,
    Chris.
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Can you link us to your example page please?

    Thanks,
    Allan
  • semseosemseo Posts: 9Questions: 0Answers: 0
    Hi Alan,

    You will need to login to access it:
    http://www.semseo.co.uk/login
    U: demo2@semseo.co.uk
    P: DemoAccount

    Afte you login click "Property" on the top navigation. This is the page where the datatables code is.

    I hope I have implemented it ok... there is quite a lot of code there!

    Thanks for your assistance.
This discussion has been closed.