sodri126 / jquery-datatables-row-grouping

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

Paging Grouped results #80

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Reproduced here at jsfiddle: http://jsfiddle.net/WOPiersol/33fD6/1/

What is the expected output? What do you see instead?
When paging grouped results with the per page result number set to 10, I expect 
to see 10 groups.  But you get the first 10 records of the first group.

What version of the product are you using? On what operating system?
rowGrouping 1.2.9
DataTables 1.10.1
OS - Windows 7

Please provide any additional information below.

First off, I would like to say thanks to anyone everyone who has contributed to 
the DataTables plug in. It gets my vote hands down as the best and most useful 
jQuery plug in.

Now my question. I have a table that has 500 records. When grouped, it has 5 
groups, each with 100 record. If I set it to page on 50 records per page, I get 
the first 50 records of the 1st group. What I think I would get is the first 50 
groups, or in this case, all 5 groups.

Example: http://jsfiddle.net/WOPiersol/33fD6/1/

Can this be configured?

Thanks, WOPiersol

Original issue reported on code.google.com by WOPier...@gmail.com on 27 May 2014 at 2:34

GoogleCodeExporter commented 9 years ago
It should be noted that in the JS fiddle example you're initializing the data 
table as $('#example').dataTable().rowGrouping... meaning even though you have 
1.10 installed you're instantiating the 1.09 API. 

To instantiate the 1.10 API make the 'd' upper case in dataTable.
$('#example').DataTable().rowGrouping...
Although 1.10 may not work presently without an update to the rowGrouping 
plugin.

Original comment by janth...@spikes.com on 21 Jul 2014 at 6:41

GoogleCodeExporter commented 9 years ago
Tested your jsfiddle example with 'dataTable' as 'DataTable and it runs fine.
Did you run into the error "Uncaught TypeError: undefined is not a function" 
rowGrouping at any point? If so, could you share the fix?

Original comment by janth...@spikes.com on 21 Jul 2014 at 7:00