datatables warning bpaginate false error

datatables warning bpaginate false error

ismailhemsireismailhemsire Posts: 4Questions: 1Answers: 0

Code
$(document).ready( function () {
$('#example').dataTable( {
"bPaginate": false
} );
} );
Error Details:Datatables warning table id=example Cannot reinitialise Datatable.For more information datatables.net/tn/3
I tried the solution proposal but it does not hide Help :neutral:

Answers

  • kthorngrenkthorngren Posts: 20,275Questions: 26Answers: 4,765

    What version of Datatables are you using?

    Looks like you are using older versions of the commands to initialize Datatables. Take a look here:
    https://datatables.net/manual/installation#Initialising-DataTables

    Also you will probably want to use the current command to disable pagination:
    paging

    Kevin

  • ismailhemsireismailhemsire Posts: 4Questions: 1Answers: 0

    ! DataTables version: 1.10.13
    /*! DataTables 1.10.13
    * ©2008-2016 SpryMedia Ltd - datatables.net/license
    */

  • ismailhemsireismailhemsire Posts: 4Questions: 1Answers: 0

    @kthorngren did not solve :/

  • tangerinetangerine Posts: 3,348Questions: 36Answers: 394

    The "paginate" thing is a red herring. Somewhere in your code you are trying to initialise DataTables more than once. You haven't provided enough of your code to assist third-party debugging. Have you checked your loading of scripts in your HTML?

  • ismailhemsireismailhemsire Posts: 4Questions: 1Answers: 0

    @tangerine page only one datatable
    ->
    head tags above style file
    body tags js file (datatable.js,datatable.bootstrap.js )
    3.party debugging?

  • tangerinetangerine Posts: 3,348Questions: 36Answers: 394

    3.party debugging?

    Debugging by someone other than yourself.
    It is not possible without seeing the code.

  • allanallan Posts: 61,665Questions: 1Answers: 10,096 Site admin

    Agreed on all points. Without seeing your code we can only guess - that is why the forum rules specifically state that a test case should be provided.

    Also, the error I quite clear and links to a tech note explaining the issue. You have an existing DataTable that is already initialised somewhere else. You are then attempting to initialise it again. That gives an error.

    Initialise the table with all the options only once.

    Allan

This discussion has been closed.