pagingType does not seem to work

pagingType does not seem to work

rogersbillyrogersbilly Posts: 8Questions: 1Answers: 0
edited May 2014 in General

Here's my code. I'd like to display the page buttons as in this example

https://datatables.net/examples/basic_init/alt_pagination.html

I've tried the various options full, full_numbers and it doesn't change anything. Everything else seems to be working. I got the latest version 1.10 and it seems to have no effect. Can someone see what I'm doing wrong?

        /* Initialise the DataTable */
        var oTable = $('#example').DataTable({
            "pagingType": "full_numbers",
            "aoColumns": [
                { "sWidth": "10%" },
                { "sWidth": "10%" },
                { "sWidth": "10%" },
                { "sWidth": "10%" },
                { "sWidth": "10%" },
                { "sWidth": "10%" },
                { "sWidth": "10%" },
                { "sWidth": "10%" }
            ],
            "oLanguage": {
                "sSearch": "Search all columns:"
            },
            "bAutoWidth": false
            
        });

Thanks

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Seems to work okay for me: http://live.datatables.net/mucoqig/1/edit. Can you please link to a test case (as requested in the forum rules).

    Allan

  • rogersbillyrogersbilly Posts: 8Questions: 1Answers: 0

    I think this was due to me using and outdated version of jQuery.

  • rogersbillyrogersbilly Posts: 8Questions: 1Answers: 0
    edited May 2014

    I set up a fiddle and it's working there but not when i run it in visual studio, so doubt anyone can help me with this

    http://jsfiddle.net/brogers/LEGrF/2/

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    What version of DataTables are you using in Visual Studio? I'm guessing an old version...

    Allan

  • rogersbillyrogersbilly Posts: 8Questions: 1Answers: 0
    edited May 2014

    1.9.4

    I just upgraded to 1.10.0 and all the filtering and search and paging is gone. I'm using jQuery 1.11.0

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    edited May 2014 Answer ✓

    That would do it... The legacy documentation is here: http://legacy.datatables.net .

This discussion has been closed.