on cliked sort buttton . page number get changed

on cliked sort buttton . page number get changed

Td@12345Td@12345 Posts: 12Questions: 4Answers: 0

on cliked sort buttton . page number get changed

This question has an accepted answers - jump to answer

Answers

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

    Please show your code, or preferably link to a test case showing the problem.
    This applies to your other post as well.

  • Td@12345Td@12345 Posts: 12Questions: 4Answers: 0
    $('#ppgFileData').DataTable({
            "language": {
                "lengthMenu": "Display _MENU_ records",
                "info": "Displaying _START_  to  _END_ of _MAX_ records"
            },
        "fnDrawCallback": function(oSettings) {
            if ($('#ppgFileData tr').length < 1) {
                $('.dataTables_paginate').hide();
            }
        },
        "aoColumnDefs": [{
            'bSortable': false,
            'aTargets': ['nosort']
        }]
        });
    
  • Td@12345Td@12345 Posts: 12Questions: 4Answers: 0

    -when there is no data . i want to remove search,pagin can its possible?

  • Td@12345Td@12345 Posts: 12Questions: 4Answers: 0

    "fnDrawCallback": function(oSettings) {
    if ($('#ppgFileData tr').length < 1) {
    $('.dataTables_paginate').hide();
    }
    }
    i did this for removing pagination but its not working.

This discussion has been closed.