Please help me with this grouping

Please help me with this grouping

anthonny2890anthonny2890 Posts: 5Questions: 0Answers: 0
edited January 2014 in DataTables 1.9
The idea is to bring together in this order using .rowGrouping(); :

-First for date.
-Second by ageGroup.
-Third by sex.

Ideas please?

[code]

$('#example').dataTable(
{
"aaData":
[
{
"date":"2014/01/11",
"name":"Caroline",
"ageGroup":"E",
"sex":"F",
"phone":"210-828-5555"
},
{
"date":"2014/01/11",
"name":"Barack",
"ageGroup":"E",
"sex":"M",
"phone":"210-828-4444"},
{
"date":"2014/01/12",
"name":"Michelle",
"ageGroup":"B",
"sex":"F",
"phone":"210-828-7777"},
{
"date":"2014/01/12",
"name":"Jhon",
"ageGroup":"C",
"sex":"M",
"phone":"210-828-9999"}
],
"aoColumns":
[
{ "mDataProp": "date" },
{ "mDataProp": "name" },
{ "mDataProp": "ageGroup" },
{ "mDataProp": "sex" },
{ "mDataProp": "phone" }
]
}
);

[/code]

The idea is to bring together in this order using .rowGrouping(); :

-First for the date.
-Second by age group
-Third by gender

Ideas please?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    edited January 2014
    I can't really help here as I know nothing about the rowGrouping plug-in. Its third party, so you might be best to post a question in that projects issue list.

    Allan
This discussion has been closed.