leopucci-zz / jquery-datatables-row-grouping

Automatically exported from code.google.com/p/jquery-datatables-row-grouping
0 stars 0 forks source link

Server Side Paging and Reducing Number of Entries Shown #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

I've got it loading data from an ajax source and serverside processing enabled. 
 You just need to populate the data with more information than the default 
display length and then change the Display Length dropdown to 10 after the page 
has loaded.

 $(document).ready(function () {
            oTable = $('#table).dataTable(
            {
                "bJQueryUI": true,
                "sPaginationType": "full_numbers",
                "bServerSide": true,
                "sAjaxSource": '/AjaxHandlerForTableData',
                "fnServerData": function (sSource, aoData, fnCallback) {
                    $.getJSON(sSource, aoData, function (json) {
                        fnCallback(json);
                    });
                },
                "bProcessing": true,
                "iDisplayLength": 25,
                "sDom": '<"H"lfr>t<"F"ip>'
            })
            .rowGrouping();

What is the expected output? What do you see instead?
Expected: Number of displayed rows should be reduced to 10 and it should page 
the results.
Actual: No change to the number of displayed rows.  Paging buttons are enabled 
but have no effect on the grid.

What version of the product are you using? On what operating system?1.1.2.
Win 7, IE 9

Original issue reported on code.google.com by repairma...@gmail.com on 17 Oct 2011 at 7:22

GoogleCodeExporter commented 9 years ago
Nevermind.  Ajax call wasn't paging the results properly.  You can close/delete 
this issue.

Thanks!

Original comment by repairma...@gmail.com on 17 Oct 2011 at 7:50

GoogleCodeExporter commented 9 years ago

Original comment by joc...@gmail.com on 26 Oct 2011 at 9:18