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

grouped radgrid

1 Answer 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ryann
Top achievements
Rank 1
Ryann asked on 21 Nov 2013, 01:34 PM
Hi
i have a grouped radgrid, using groupbyexpression. I want to get the count of rows in each grouped header. How to do it?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 21 Nov 2013, 01:46 PM
Hi Ryann,

You can set the Aggregate property of the GridGroupByField to count to get the count of grouped rows.

ASPX:
<GroupByExpressions>
    <telerik:GridGroupByExpression>
        <SelectFields>
            <telerik:GridGroupByField FieldName="UnitsInStock" HeaderText="Units Stock"
                Aggregate="Count" />
        </SelectFields>
        <GroupByFields>
            <telerik:GridGroupByField FieldName="Name" SortOrder="Descending" />
        </GroupByFields>
    </telerik:GridGroupByExpression>
</GroupByExpressions>

Thanks,
Princy
Tags
Grid
Asked by
Ryann
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or