Grouping by header rows and showing rest as child rows
Grouping by header rows and showing rest as child rows
Hi guys,
I am pretty new to datatables.net and i have this problem :
{
"users": [
{
"id": 1,
"name": "Adam Carter",
"work": "Unilogic",
"email": "adam.carter@unilogic.com",
"WeaponModel": "AK-47",
"purchasedOn": "2017-02-02",
"city": "Boston",
"WithRounds": true
},
{
"id": 2,
"name": "Adam Carter",
"work": "Unilogic",
"email": "adam.carter@unilogic.com",
"rifle": "Patrol SBR",
"purchasedOn": "2017-09-15",
"city": "New York",
"WithRounds": true
},
{
"id": 3,
"name": "Craig Ferguson",
"work": "Red Software",
"email": "cferg@redsoft.com",
"rifle": "Colt LE6920",
"purchasedOn": "2016-12-03",
"city": "New Jersey",
"WithRounds": false
},
{
"id": 4,
"name": "Craig Ferguson",
"work": "Red Software",
"email": "cferg@redsoft.com",
"rifle": "Les Baer M4",
"purchasedOn": "2016-10-01",
"city": "New Jersey",
"WithRounds": true
}
}
I need to show the common header data as a row and child rows. For now i cannot find any straight way to do this and haven't found anything on the forum either.
Thanks for helping