• Material 3
  • Fluent
  • Bootstrap v5
  • Tailwind CSS
  • High Contrast
Preferences
Theme Selection
Theme Modes
Mode Selection
Touch
Mouse
Localization
*Translated by Google Translator.
Currency

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

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

DEMO
SOURCE

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
85+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE