I am having a problem with grouping on a grid. I have two select fields, one which shows the current group, and one which shows a count of rows.
The header text works fine on the first group, but all subsequent groups, it looks like it is just showing a template of the text.
The attached image shows the way it is coming out. I collapsed the first group so all the group headers could be seen together.
You can see that the first group shows up fine showing "Pass: ; Fields: 73". This is correct, as that first group, all of the rows have the value for the PASS field empty.
But then the subsequent two groups are wrong. Taking the second group as example, it SHOULD show "Pass: 6; Fields 1", but instead it shows " Fields: {0}".
The below is the code for the groupbyexpressions for the grid in question.
01.
<
groupbyexpressions
>
02.
<
telerik:gridgroupbyexpression
>
03.
<
groupbyfields
>
04.
<
telerik:gridgroupbyfield
fieldname
=
"PASSNUMBER"
/>
05.
</
groupbyfields
>
06.
<
selectfields
>
07.
<
telerik:gridgroupbyfield
fieldname
=
"PASSNUMBER"
headertext
=
"Pass"
fieldalias
=
"PASS"
/>
08.
<
telerik:gridgroupbyfield
fieldname
=
"ROWID"
headertext
=
"Fields"
fieldalias
=
"FIELDS"
aggregate
=
"Count"
/>
09.
</
selectfields
>
10.
</
telerik:gridgroupbyexpression
>
11.
</
groupbyexpressions
>