Example of Cell Template in ASP.NET MVC Pivot Table Control

Pivot Table
Customization
Cell Template

In this sample demonstrate the cell customization based on the values changes for every next year with previous year using the cell template options.

The Pivot Table provides a way to use a custom layout for each cell using cell template feature. The cellTemplate property accepts either string or HTML element`s ID value, which will be used as the template for the cell.

In this samples, using cell template, we have presented revenue cost for each year with trend image. For displaying trend, we have applied the conditions for each cell using pivot values from dataBound event. Based on the condition passed we have updated the trend image.

Transform your ASP.NET MVC web apps today with Syncfusion® ASP.NET MVC components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab