Hi,
I could try to make a nested grouping with RadGrid.
The first field to group is "Campionato" (Champion),
the second is "Gara" (Game)
I can do this work with drag &drop column (see attahced Correct.png).
but I want that this grouping is fixed when load Grid (client or server)
I can add GridGroupByField in aspx
or use che code behind
but the result is wrong (see attached Wrong.png)
HoW do i do ?
I could try to make a nested grouping with RadGrid.
The first field to group is "Campionato" (Champion),
the second is "Gara" (Game)
I can do this work with drag &drop column (see attahced Correct.png).
but I want that this grouping is fixed when load Grid (client or server)
I can add GridGroupByField in aspx
<
telerik:RadGrid
ID
=
"gvList"
runat
=
"server"
PageSize
=
"20"
AllowSorting
=
"True"
AllowPaging
=
"True"
ShowGroupPanel
=
"True"
AutoGenerateColumns
=
"False"
GridLines
=
"None"
>
<
PagerStyle
Mode
=
"NumericPages"
></
PagerStyle
>
<
MasterTableView
Width
=
"100%"
GroupLoadMode
=
"Server"
TableLayout
=
"Fixed"
>
<
GroupByExpressions
>
<
telerik:GridGroupByExpression
>
<
SelectFields
>
<
telerik:GridGroupByField
FieldAlias
=
"CAMPIONATO"
FieldName
=
"C01_B04_CODE_FK"
></
telerik:GridGroupByField
>
<
telerik:GridGroupByField
FieldAlias
=
"GARA"
FieldName
=
"C01_GARA_PK"
></
telerik:GridGroupByField
>
</
SelectFields
>
<
GroupByFields
>
<
telerik:GridGroupByField
FieldName
=
"C01_B04_CODE_FK"
></
telerik:GridGroupByField
>
</
GroupByFields
>
</
telerik:GridGroupByExpression
>
</
GroupByExpressions
>
GridGroupByExpression expression =
new
GridGroupByExpression();
GridGroupByField existing = expression.SelectFields.FindByName(
"C01_GARA_PK"
);
GridGroupByField field =
new
GridGroupByField();
field.FieldName =
"C01_B04_CODE_FK"
;
field.FieldAlias =
"CAMPIONATO"
;
GridGroupByField field =
new
GridGroupByField();
field.FieldName =
"C01_GARA_PK"
;
field.FieldAlias =
"GARA"
;
expression.SelectFields.Add(field);
gvList.MasterTableView.GroupByExpressions.Add(expression);
gvList.Rebind();
but the result is wrong (see attached Wrong.png)
HoW do i do ?