I am using VS 2013 and have the most current Telerik ASP.NET AJAX components loaded.
I have a single view I am accessing and I want to have three groups: Year > Month > Ingredient
I want all child columns under the Ingredient group to be collapsed by default. I have tried to use the GroupsDefaultExpanded but it seems to collapse everything to the first group (Year).
ASPX code below:
<
telerik:RadGrid
ID
=
"FutureViewGrid"
OnColumnCreated
=
"FutureViewGrid_ColumnCreated"
ShowHeader
=
"true"
runat
=
"server"
SelectMethod
=
"GetFuturesView"
ItemType
=
"RawPricing.DataModel.RawPricingFuturesView"
AllowFilteringByColumn
=
"True"
AllowSorting
=
"True"
ShowGroupPanel
=
"True"
>
<
ClientSettings
Resizing-AllowColumnResize
=
"true"
Resizing-ResizeGridOnColumnResize
=
"true"
AllowColumnsReorder
=
"True"
AllowDragToGroup
=
"True"
ReorderColumnsOnClient
=
"True"
Resizing-AllowResizeToFit
=
"true"
>
<
Scrolling
AllowScroll
=
"True"
UseStaticHeaders
=
"True"
/>
</
ClientSettings
>
<
MasterTableView
SelectMethod
=
"GetFuturesView"
GroupsDefaultExpanded
=
"false"
GroupLoadMode
=
"Server"
RetainExpandStateOnRebind
=
"true"
EnableGroupsExpandAll
=
"true"
>
<
GroupByExpressions
>
<
telerik:GridGroupByExpression
>
<
SelectFields
>
<
telerik:GridGroupByField
FieldName
=
"Year"
FieldAlias
=
"Year"
/>
<
telerik:GridGroupByField
FieldName
=
"Cost_Change"
FieldAlias
=
"CostChange"
Aggregate
=
"Sum"
FormatString
=
"{0:c}"
/>
<
telerik:GridGroupByField
FieldName
=
"Amount"
FieldAlias
=
"AmountLBS"
Aggregate
=
"Sum"
FormatString
=
"{0:#,##}"
/>
</
SelectFields
>
<
GroupByFields
>
<
telerik:GridGroupByField
FieldName
=
"Year"
SortOrder
=
"Ascending"
/>
</
GroupByFields
>
</
telerik:GridGroupByExpression
>
<
telerik:GridGroupByExpression
>
<
SelectFields
>
<
telerik:GridGroupByField
FieldName
=
"Year"
FieldAlias
=
"Year"
/>
<
telerik:GridGroupByField
FieldName
=
"Month"
FieldAlias
=
"Month"
/>
<
telerik:GridGroupByField
FieldName
=
"Cost_Change"
FieldAlias
=
"CostChange"
Aggregate
=
"Sum"
FormatString
=
"{0:c}"
/>
<
telerik:GridGroupByField
FieldName
=
"Amount"
FieldAlias
=
"AmountLBS"
Aggregate
=
"Sum"
FormatString
=
"{0:#,##}"
/>
</
SelectFields
>
<
GroupByFields
>
<
telerik:GridGroupByField
FieldName
=
"Month"
SortOrder
=
"Ascending"
/>
</
GroupByFields
>
</
telerik:GridGroupByExpression
>
<
telerik:GridGroupByExpression
>
<
SelectFields
>
<
telerik:GridGroupByField
FieldName
=
"Year"
FieldAlias
=
"Year"
/>
<
telerik:GridGroupByField
FieldName
=
"Month"
FieldAlias
=
"Month"
/>
<
telerik:GridGroupByField
FieldName
=
"Ingredient"
FieldAlias
=
"Ingredient"
/>
<
telerik:GridGroupByField
FieldName
=
"Cost_Change"
FieldAlias
=
"CostChange"
Aggregate
=
"Sum"
FormatString
=
"{0:c}"
/>
<
telerik:GridGroupByField
FieldName
=
"Amount"
FieldAlias
=
"AmountLBS"
Aggregate
=
"Sum"
FormatString
=
"{0:#,##}"
/>
</
SelectFields
>
<
GroupByFields
>
<
telerik:GridGroupByField
FieldName
=
"Ingredient"
SortOrder
=
"Ascending"
/>
</
GroupByFields
>
</
telerik:GridGroupByExpression
>
</
GroupByExpressions
>
</
MasterTableView
>
</
telerik:RadGrid
>