I'm not sure if the RadGrid (or late bound controls) support what I'm trying to do.
My concern is design in nature.
I can already perform the grouping server-side, but when I have two items that match on a particular DataKey, I need to effectively make them appear as 1 item.
For example:
So at this point, instead of having subsequent grouped columns/rows containing "PersonName" twice or more in a tubalar fashion, I am looking for it to display once, and for all groupings at this level (Second) to appear as 1 row.
My concern is design in nature.
I can already perform the grouping server-side, but when I have two items that match on a particular DataKey, I need to effectively make them appear as 1 item.
For example:
// Asset of a person
public
class
PersonAsset {
public
Guid PersonID {
get
;}
//DataKey; second GroupBy will be by PersonID
public
string
Asset {
get
;
set
;}
public
Guid AssetID {
get
;
set
}
//not a DataKey for the Grid, correlates to a comboxbox that makes the asset changeable
public
string
PersonName {
get
;
set
;}
public
string
Note1 {
get
;
set
;}
public
string
Note2 {
get
;
set
;}
public
string
Note3 {
get
;
set
;}
public
PersonAssetState State {
get
;
set
;}
}
//going to perform first GroupBy using this enum
public
enum
PersonAssetState {
NotSet,
Type1,
Type2
}
<
telerik:RadGrid
runat
=
"server"
ID
=
"rGridInventory"
ShowHeader
=
"true"
Width
=
"99%"
OnNeedDataSource
=
"rGridInventory_NeedDataSource"
>
<
MasterTableView
DataKeyNames
=
"PersonID"
ClientDataKeyNames
=
"PersonID"
ShowGroupFooter
=
"true"
GroupLoadMode
=
"Client"
>
<
GroupFooterTemplate
>
</
GroupFooterTemplate
>
<
GroupByExpressions
>
<
telerik:GridGroupByExpression
>
<
GroupByFields
>
<
telerik:GridGroupByField
FieldName
=
"State"
SortOrder
=
"Descending"
/>
<
telerik:GridGroupByField
FieldName
=
"PersonID"
/>
</
GroupByFields
>
<
SelectFields
>
<
telerik:GridGroupByField
FieldName
=
"State"
/>
<
telerik:GridGroupByField
FieldName
=
"PersonID"
/>
</
SelectFields
>
</
telerik:GridGroupByExpression
>
</
GroupByExpressions
>
</
MasterTableView
>
</
telerik:RadGrid
>
So at this point, instead of having subsequent grouped columns/rows containing "PersonName" twice or more in a tubalar fashion, I am looking for it to display once, and for all groupings at this level (Second) to appear as 1 row.