This is a migrated thread and some comments may be shown as answers.

Grouping with Subgroups

1 Answer 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 24 Aug 2010, 01:25 AM
Is there a way to either programmatically or declaritively set grouping on grid and apply subgrouping? For example, on one grid we want to group rows by their status. As subgroups, we'd like to group the rows by user. So we would have group headings for status and within these groups we would have groupings by user.

Is this possible? Thanks!

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 26 Aug 2010, 02:22 PM
Hi Peter,

Indeed you may add multiple group expression both programmatically or declarative. For example:

<MasterTableView>               
    <GroupByExpressions>
        <telerik:GridGroupByExpression>
            <GroupByFields>
                <telerik:GridGroupByField FieldName="Status"/>
            </GroupByFields>
            <SelectFields>
                <telerik:GridGroupByField FieldName="Status"/>
            </SelectFields>
        </telerik:GridGroupByExpression>
        <telerik:GridGroupByExpression>
            <GroupByFields>
                <telerik:GridGroupByField FieldName="User"/>
            </GroupByFields>
            <SelectFields>
                <telerik:GridGroupByField FieldName="User"/>
            </SelectFields>
        </telerik:GridGroupByExpression>
    </GroupByExpressions
</MasterTableView>

Best wishes,
Rosen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Peter
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or