Server side simple pagingType .net

Server side simple pagingType .net

marco.andrademarco.andrade Posts: 1Questions: 1Answers: 0
edited July 2017 in Free community support

Good afternoon, I'm trying to do a server side paging, but when I use the "simple" paging type and the buttons are disabled. When I use a paging type that displays the page numbers, it works perfectly, but I need to display only the "Next" and "Previous" buttons for paging.

Image attached.

Settings:

dataTableOptions = {
        "autoWidth": true,
        "info": false,
        "lengthChange": false,
        "paging": true,
        "pagingType": "simple",
        "searching": false,
        "colReorder": true,
        "order": [[0, "desc"]],
        "stateSave": true,
        "serverSide": true,
        "processing": true,
        "pageLength": 10,
        "ajax": {
            "url": webUrl + "/_vti_bin/Iteris/CAP/3-4.8/CAPServiceREST.svc/CurrentUser/Tasks",
            "data": function (d) {
                var columns = [];
                $(d.columns).each(function (index, item) {
                    columns.push({ "index": index, "data": item.data });
                });
                d.length = 10;
                d.columns = JSON.stringify(columns);
                d.order = JSON.stringify(d.order[0]);
                d.lcid = getCurrentLCID();
                delete d["search"];
            },
            "dataSrc": function (json) {
                if (typeof json == "string")
                    json = $.parseJSON(json);
                return json.data;
            }
        },
        "dom": "<'row'<'col-xs-12'tr>>" +
        "<'row'<'col-xs-12'p>>"
    };

Return of server side wcf service:

return CAPSerializationUtility.SerializeToJson(new
{
    draw = draw,
    recordsTotal = values.Count,
    recordsFiltered = values.Count,
    data = values,
    error = (String)null
 });

Does anyone know how to solve this problem?

Thanks

This discussion has been closed.