2 Pagination buttons disappears out of 4, after language change.

2 Pagination buttons disappears out of 4, after language change.

ahkahk Posts: 4Questions: 2Answers: 0

Hi,

I was able to see all the pagination buttons [First][Previous][Next][Last] before I made changes in language, after the change, 2 buttons [First] & [Last] disappears and the rest 2 [Previous] & [Next] still appearing. If i remove pagination related language change and let the other language change intact, still no luck and getting 2 pagination buttons out of 4.

                   $("#example").dataTable({
                        "bFilter" : true,
                        "bSort" : true,
                        "oLanguage": { 
                            "sLengthMenu": "Dislay _MENU_ records per page",
                            "sZeroRecords": "Zero record found",
                            "sInfo": "Showing _START_ to _END_ of _TOTAL_ records",
                            "sInfoEmpty": "Empty Grid",
                            "sInfoFiltered": "(Filtered from _MAX_ total records)",
                            "sSearch" : "Filter ",
                            "oPaginate" : { 
                                sFirst : "First", 
                                sLast : "Last", 
                                sNext : "Next", 
                                sPrevious : "Prev" 
                            }
                        },
                        "bPaginate" : true,
                        "sPagingType" : "four_button",
                        "bDestroy" : true  
                    } );

Answers

  • ahkahk Posts: 4Questions: 2Answers: 0

    I am using 1.9.4 ... legacy grid

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    oPaginate is documented like so:

    "oPaginate": {
            "sFirst": "First page"
    
  • ahkahk Posts: 4Questions: 2Answers: 0

    something went wrong in copy/paste, actual code is here.

    $("#example").dataTable({
    "bFilter" : true,
    "bSort" : true,
    "oLanguage": {
    "sLengthMenu": "Dislay MENU records per page",
    "sZeroRecords": "Zero record found",
    "sInfo": "Showing START to END of TOTAL records",
    "sInfoEmpty": "Empty Grid",
    "sInfoFiltered": "(Filtered from MAX total records)",
    "sSearch" : "Filter ",
    "oPaginate" : {
    "sFirst" : "First",
    "sLast" : "Last",
    "sNext" : "Next",
    "sPrevious" : "Prev"
    }
    },
    "bPaginate" : true,
    "sPagingType" : "four_button",
    "bDestroy" : true
    } );

This discussion has been closed.