Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Adding attributes to PivotGridAggregateField

$
0
0

I have a webpage that has a regular RadGrid with GridBoundColumns and GridNumericColumns. 

During the excel export the formatting of my numerical data seems to get lost. Columns that appear on the grid on the page will look like:

 

123.43

0.00

 

The aspx for the regular RadGrid has code that another developer wrote that includes attributes:

EmptyDataText

DataFormatString

FooterAggregateFormatString

 

Here is what that looks like:

 

<telerik:GridNumericColumnDataField="revenue"EmptyDataText="0.00"HeaderText="Revenue"DataFormatString="{0:#,##0.00;(#,##0.00)}"<br>                        Groupable="false" UniqueName="revenue" Aggregate="Sum" FooterText=" " FooterAggregateFormatString="{0:#,##0.00;(#,##0.00)}"><br>                        <HeaderStyleHorizontalAlign="Center"/><br>                        <ItemStyleHorizontalAlign="Right"Wrap="false"/><br>                        <FooterStyleHorizontalAlign="Right"Wrap="false"/><br>                    </telerik:GridNumericColumn>

 

In the RadPivotGrid the similar column to above appears like so:

 

<telerik:PivotGridAggregateFieldDataField="actualValue"Aggregate="Sum"><br>                    <HeaderCellTemplate><br>                        <asp:LabelID="lblActualValue"Text="Actual"runat="server"/><br>                    </HeaderCellTemplate><br>                </telerik:PivotGridAggregateField>

So how can I add the attriutes I mentioned to the PivotGridAggregateField?

 

Thanks,

 Julian

 


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>