Blazor Pivot Table Example - Cell Template
In this sample, we demonstrate on how to provide templates for each pivot table value cell based on user requirement.
Grand Total |
---|
Grand Total | No records to display |
The Pivot Table provides a custom layout for each cell's display using the cell template feature.
The CellTemplate
in PivotViewTemplates accepts either an HTML string or the element's ID, which can be used to append additional HTML elements in order to showcase each cell with a template. To calculate the trend, we have applied conditions for each cell using the PivotViewTemplates
. Based on the applied condition, we are showing the appropriate indicators.
More information on the cell template feature can be found in this documentation section.