sInfo in puglin datatable does not work to show from n to n entries?

0

at the time of showing the results of the datatable from START to END it does not work and neither is paging correctly behaving because it lets me choose any page even if it does not have data , help!

table.dtOptions = DTOptionsBuilder.newOptions()
                .withOption("ajax", {
                    dataType: "json",
                    type: "POST",
                    url: 'Usuario/GetAllUsers'
                })
                .withDataProp("data")
                .withPaginationType('full_numbers')
                .withDOM('<"html5buttons"B>lTfgitp')
                .withOption("createdRow", createdRow)
                .withOption('serverSide', true)
                .withButtons([
                    { extend: 'copy', className: 'btn-sm' },
                    { extend: 'csv', className: 'btn-sm' },
                    { extend: 'excel', className: 'btn-sm', title: 'XLS-File' },
                    { extend: 'pdf', className: 'btn-sm', title: $('title').text() },
                    { extend: 'print', className: 'btn-sm' }
                ])
                .withLanguage({
                    "sEmptyTable": "No existen Usuarios",
                    "sInfo": "Mostrando _START_ a _END_ de _TOTAL_ entradas",
                    "sInfoEmpty": "Mostrando de 0 a 0 de 0 entradas",
                    "sInfoFiltered": "(Filtrando de un total de _MAX_ entradas)",
                    "sInfoPostFix": "",
                    "sInfoThousands": ",",
                    "sLengthMenu": "Mostrando _MENU_ entradas",
                    "sLoadingRecords": "Cargando...",
                    "sProcessing": "Procesando...",
                    "sSearch": "Buscar:",
                    "sZeroRecords": "No se encontraron coincidencias",
                    "oPaginate": {
                        "sFirst": "Primero",
                        "sLast": "Ultimo",
                        "sNext": "Siguiente",
                        "sPrevious": "Anterior"
                    },
                    "oAria": {
                        "sSortAscending": ": ascendiente",
                        "sSortDescending": ": descendiente"
                    }
                });
    
asked by david canche 06.06.2018 в 00:17
source

1 answer

0

My mistake, was not to return from the MVC recordstotal and recordsfiltered controller

    
answered by 05.07.2018 / 19:09
source