Hi all,
We are trying grouping by column type object , for this, we use this code:With this code, the grouping work correctly, but the text appears in header group template it's not we need.
In the grid we can see the name of field and his value, but we want see the title of the column.
How we can do it?
We are trying grouping by column type object , for this, we use this code:
group: function(e) {
if (e.groups.length) {
var isNestedGrouped;
e.groups.map(function(x){
if(x.field == "type"){
isNestedGrouped = true;
}
})
if(isNestedGrouped){
e.preventDefault()
var newGroups = [];
this.dataSource.group().forEach(function(x){
if(x.field != "type"){
newGroups.push(x)
}
})
newGroups.push({field:"type.name"})
this.dataSource.group(newGroups)
}
}
}
In the grid we can see the name of field and his value, but we want see the title of the column.
How we can do it?
Thank you in advance