Counts are off for my grid X of Y but the total is correct

Counts are off for my grid X of Y but the total is correct

awilbournawilbourn Posts: 6Questions: 3Answers: 0
edited October 2015 in Free community support

I have something like "Showing 1 to 29 of 219 entries" show for my grid that has srolling save state. Actually here is my table code, after JSON call returns data. What have found is that the X of Y is counting the actual number of lines in the grid, so if a cell has a wrap to force two lines the count reflects both. Is there some option to turn that off, or make a custom want to render. The feature is very handy to have.

$('#tblEntrants').dataTable({ paging: true,
            "bAutoWidth": false,
            "sScrollY": "600",
            "sScrollX": "1100",
            dom: "frtiS",
            "processing": true,
            "data": data,
            "columns": [
                    { "data": "EntrantID", className: "default", "defaultContent": "" },
                    { "data": "Modify_By" },
                    { "data": "Status" },
                    { "data": "ReceivedDate" },
                    { "data": "PCNum" },
                     { "data": "ClassCode" },
                     { "data": "OwnerName" },
                     { "data": "POCName" },
                     { "data": "Year"},
                     { "data": "Make" },
                     { "data": "Model" },
                     { "data": "DisplayName" }
                ],
            scrollY: "600",
            scrollCollapse: true,
            stateSave: true,
            "columnDefs": [{
                "targets": 0,
                "data": "EntrantID",
                "render": function (data, type, full, meta) {
                    //some custom stuff here
                }
            }]

Answers

  • awilbournawilbourn Posts: 6Questions: 3Answers: 0

    So no one has ever seen this problem before? Hoping to get some help here.

  • awilbournawilbourn Posts: 6Questions: 3Answers: 0

    Touching to see if someone might have some answers for me on this.

This discussion has been closed.