hackolein / jquery-datatables-row-grouping

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

Patch for /trunk/media/js/jquery.dataTables.rowGrouping.js #91

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Null values grouping and add sEmptyGroupLabel;
mDataProp -> mData;

Original issue reported on code.google.com by gira...@gmail.com on 14 Mar 2015 at 3:21

Attachments:

GoogleCodeExporter commented 9 years ago
Work DataTables 1.10.3

$('#XXX').dataTable({
   ....
});
$('#XXX').dataTable().rowGrouping({
   bExpandableGrouping: false,
   bExpandSingleGroup: false,
   iExpandGroupOffset: -1,
   iGroupingColumnIndex: 0,
   iGroupingColumnIndex2: 1,
   sGroupLabelPrefix: "Rendering Engine - ",
   fnGroupLabelFormat: function(label) { return ""+ label + ""; } ,
   sGroupLabelPrefix2: "CSS Class - ",
   fnGroupLabelFormat2: function(label) { return ""+ label + ""; },
   bHideGroupingColumn: false,
   bHideGroupingColumn2: false
});

Original comment by gira...@gmail.com on 14 Mar 2015 at 3:27

GoogleCodeExporter commented 9 years ago
Hi, here is the patched version using the suggested patch above.I have tested 
it with DataTables 1.10.5 and this fiddle http://jsfiddle.net/RgKPZ/443/

Original comment by mar...@mgscreativa.com on 18 Mar 2015 at 7:40

Attachments:

GoogleCodeExporter commented 9 years ago
Hi, I'm new, not quite understand the essence of your message. The link was 
http://jsfiddle.net/RgKPZ/443/ version jquery.dataTables.js 1.9.0
Did I do something wrong?

Original comment by gira...@gmail.com on 21 Mar 2015 at 3:39

GoogleCodeExporter commented 9 years ago
Page http://jsfiddle.net/RgKPZ/443/ I added jquery.dataTables.js version 1.10.5 
and removed a number of values of the field Browser. I downloaded the data for 
the table using ajax. When grouping is performed on a column with a Null value, 
then I had problems. Especially when grouping the second level. So I used the 
recommendations on the link 
https://code.google.com/p/jquery-datatables-row-grouping/issues/detail?id=55&can
=1&q=mData
Thanks for the post

Original comment by gira...@gmail.com on 21 Mar 2015 at 3:47

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
FYI: I exported this dead project to github: 
https://github.com/djwoodward/jquery-datatables-row-grouping

Original comment by dan.jonw...@gmail.com on 27 Mar 2015 at 4:14