I haven't seen this in the demos or documentation (yet?). is it possible to display bars, lines or sparklines in the cells of a pivot grid ? is this supported by a public method or property? can this be programmed? is this difficult or extensive?
thanks in advance
Rolf Kaleveld
1 Answer, 1 is accepted
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 22 Aug 2022, 11:23 AM
Hello, Rolf,
RadPivotGrid offers integration with RadChartView. Additional information on this topic is available in the following article:
thank you for your answer. we are not looking for a chart next to the pivot grid, but for a bar within a cell of the privot grid. the bar could represent the procential part of the cell value in comparison to the grand total of the column. the demo doesn't show this or does it?
Regards,
Rolf
Dess | Tech Support Engineer, Principal
Telerik team
commented on 25 Aug 2022, 06:46 AM
Hi, Rolf,
The previously referred demo doesn't show charts inside each separate pivot cell. It demonstrates an integration between the selected data in RadPivotGrid and RadChartView.
Note that RadPivotGrid offers the CellCreating event which allows you to replace the default PivotCellElement with your custom one. In the PivotCellElement derivative you can override the CreateChildElements method where you can add whatever RadElement you need. Then, override the SynchronizeProperties method in order to adjust the custom element with the currently associated data.
However, such an approach is not recommended as it may affect the pivot's performance and smooth scrolling due to the big number of visual cell elements in the pivot. That is why I suggested the chart integration.