or
<
span
style
=
"color: #ff0000;"
>Test</
span
> Some content "really long text here; some more stuff here
protected void ExportToPdf_Click(object sender, EventArgs e)
{
RadGrid1.ExportSettings.ExportOnlyData = true;
RadGrid1.ExportSettings.IgnorePaging = true;
RadGrid1.ExportSettings.OpenInNewWindow = true;
RadGrid1.ExportSettings.FileName = "FileName";
RadGrid1.MasterTableView.ExportToPdf();
}
// 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
>