This is a migrated thread and some comments may be shown as answers.

Include Text in FooterText even with DataFormatString

1 Answer 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Levi
Top achievements
Rank 1
Levi asked on 11 Dec 2008, 01:06 AM
I have a field that has a dataformatstring applied which is keeping the FooterText from showing up. Is there a way I can specify a different format string for the footer text or is there a better way to do this? Also how would I include text in a dataformatstring.

 

<telerik:GridBoundColumn UniqueName="PercentSiteRevenue" SortExpression="PercentSiteRevenue"

 

 

HeaderText="% Site Revenue" DataField="PercentSiteRevenue" ItemStyle-HorizontalAlign="Right"

 

 

HeaderStyle-HorizontalAlign="Right" DataFormatString="{0:0.0%}" FooterStyle-HorizontalAlign="Right"

 

 

FooterText="Avg: " Aggregate="Avg">

 

 

<HeaderStyle></HeaderStyle>

 

 

</telerik:GridBoundColumn>

.. In the footer I get only the value and not the "Avg: ".

Thanks,
Levi

 

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 11 Dec 2008, 08:57 AM
Hello Levi,

I suggest you try the FooterAggregateFormatString property:
<telerik:GridBoundColumn ... DataFormatString="{0:0.0%}" FooterAggregateFormatString="Avg: {0:0.0%}" Aggregate="Avg" ... /> 

Kind regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Levi
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or