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

Can I use a datafield with format "HH:MM" in a PivotGrid:AggregateField?

6 Answers 62 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Diego
Top achievements
Rank 1
Diego asked on 26 May 2014, 04:00 AM
Hi... I use a pivotGrid and I need to use a datafield with format "HH:MM" in a AggregateField, is that possible?

6 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 29 May 2014, 08:38 AM
Hi Diego,

Please note that using DateTime fields for PivotAggregateField is not recommended. You can use numeric fields instead, for instance:
<telerik:PivotGridAggregateField DataField="Freight" Aggregate="Sum" DataFormatString="{0:C}">
</telerik:PivotGridAggregateField>

Hope this helps.

Regards,
Eyup
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Tim
Top achievements
Rank 1
answered on 02 Jul 2014, 04:21 PM
Hi Eyup,

May I ask how can I get access to dataformatstring of calculated item in the radpivotgrid column?

Thank you.
0
Eyup
Telerik team
answered on 07 Jul 2014, 08:28 AM
Hi Tim,

Please note that the PivotGridCalculatedItem does not have a DataFormatString property. You can control its formatting individually for each cell or set the default DataFormatString for its parent PivotGridColumnField:
http://www.telerik.com/help/aspnet-ajax/pivotgrid-custom-data-calculations.html

Hope this helps.

Regards,
Eyup
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Tim
Top achievements
Rank 1
answered on 07 Jul 2014, 09:29 AM
Thanks Eyup,

How can I access the format of e.CalculatedValue cell in particular?

My problem is that I'm trying to get my calculated item to be in percentage where my column is in other format.

Best Regards.
0
Tim
Top achievements
Rank 1
answered on 08 Jul 2014, 09:36 AM
Thanks for the reply,

My question above is being answered by other post @ http://www.telerik.com/forums/radpivotgrid-calculated-item
0
Eyup
Telerik team
answered on 08 Jul 2014, 10:07 AM
Hi Tim,

I'm glad the suggested approach by my colleague has proven helpful.
You can turn to us if new questions arise.

Regards,
Eyup
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
PivotGrid
Asked by
Diego
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Tim
Top achievements
Rank 1
Share this question
or