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

How to Group results?

1 Answer 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Clive Hoggar
Top achievements
Rank 1
Clive Hoggar asked on 10 Jul 2010, 09:38 PM
Hi
I have a table of products that is being output to pdf, and is working fine.  However I need to change the
format a bit to group the results by one of the columns ("Region") .
I know this is relatively simple but the documentation says it can be done, without giving much in the
way of example.
I have in the MaterTableView 
<GroupByExpressions>
        <telerik:GridGroupByExpression>
        </telerik:GridGroupByExpression>
<
/GroupByExpressions>
but I can't figure out the syntax for telling it to group by the column 'Region'. 

Thanks for any help.

Sorry for being dumb!

Clive

1 Answer, 1 is accepted

Sort by
0
Clive Hoggar
Top achievements
Rank 1
answered on 11 Jul 2010, 02:30 PM
Hi
meanwhile I found related posts that helped me out:
<GroupByExpressions>
      <telerik:GridGroupByExpression>
        <SelectFields>
          <telerik:GridGroupByField FieldName="Region" FieldAlias="REGION" />
        </SelectFields>
        <GroupByFields>
          <telerik:GridGroupByField FieldName="Region" />
        </GroupByFields>
      </telerik:GridGroupByExpression>
    </GroupByExpressions>

Thanks

Clive
Tags
Grid
Asked by
Clive Hoggar
Top achievements
Rank 1
Answers by
Clive Hoggar
Top achievements
Rank 1
Share this question
or