'Kendo UI MVC multiple groupings in a single line on a grid

I would like to know how complicated is to grouping everything is just one line.

Let's say

                             .Group(g => g.Add(c => c.GradeCode))
                             .Group(g => g.Add(c => c.SizeLength))
                             .Group(g => g.Add(c => c.SizeWidth))
                             .Group(g => g.Add(c => c.SizeThick))

Would be instead of having Grouping in (GradeCode > SizeLength > SizeWidth > SizeThick) depth 4, just having a grouping of depth 1 ((GradeCode AND SizeLength AND SizeWidth AND SizeThick) >)



Solution 1:[1]

The Kendo Grid does not support the requested behavior. Multiple groups are nested in each other.

Solution 2:[2]

Concatenate all the fields in a new field, and group by it.

Solution 3:[3]

In my case, I used server operation and I've existing multiple groups 'Model.Request.Groups' stored in session. after refreshing the page, I can restored these groups by this...

.Group(g =>
    {
        foreach(var item in Model.Request.Groups)
            g.Add(item.Member, item.MemberType);
    })

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Atanas Korchev
Solution 2 Hussein
Solution 3 Sam