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

RadPivotGrid - Add Caption / Title and show Row Count of Aggregated rows

3 Answers 161 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ovais
Top achievements
Rank 1
Ovais asked on 01 Feb 2015, 12:24 PM
1. How to add Caption or Title, when user export to excel.
2. Display row count for aggregated rows along with aggregate value.

Attached is the sample snapshot for further clarification.

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 04 Feb 2015, 12:50 PM
Hello Ovais,

You could use the Export Infrastructure for this one. Examine the following links:

Using the infrastructure you can handle the InfrastructureExporting event and using the "ShiftRowsDown " method you can move the  page content down and add what caption you need.

As for the second requirement, note that this could not be achieved as only one aggregate can be added for specific field. Therefore we can not add count and sum aggregate at the same time.

Regards,
Maria Ilieva
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
Ovais
Top achievements
Rank 1
answered on 04 Feb 2015, 02:01 PM
Thanks Maria for guidance.

I haven't tried adding title to exported file solution suggested by you. However for the count I was able to solve by adding Aggregate field and used its "Count" function as aggregate function for same field which was showing aggregate SUM. This solved my problem.

I will try your suggested method for adding title. But I guess it might have been much easier if it was part of the PivotGrid caption as Property, so that we don't have to do any customization for just adding a Title to exported file:). As we expectation from Telerik is too high from all its users.
0
Maria Ilieva
Telerik team
answered on 09 Feb 2015, 12:03 PM
Hi Ovais,

I completely understand your concerns and will agree that having Caption property exposed for the RadPivotGrid is much more easier instead of using code to insert such title in the exported file. Therefore I would suggest you to log this request into our feedback portal below so that other users can vote for it and increase its priority.

Feedback & Ideas


Regards,
Maria Ilieva
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
Grid
Asked by
Ovais
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Ovais
Top achievements
Rank 1
Share this question
or