Please help me with this grouping
Please help me with this grouping
anthonny2890
Posts: 5Questions: 0Answers: 0
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?
-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?
This discussion has been closed.
Replies
Allan