The DevExpress ASP.NET MVC Grid View allows you to recalculate total and group summaries on the client in batch edit mode.
To disable automatic recalculation, set the EnableRealTimeSummaryRecalculation property to false.
The GridView does not highlight its summaries when their values are recalculated. To highlight recalculated summary values, use the following API:
- HighlightSummaryItems property - Set this property to true to apply predefined styles to recalculated summary values.
- BatchEditSummaryDisplayText event - Handle this event to use custom styles and text.
In this demo, the control's HighlightSummaryItems property value is set to true and the grid colors summary items when their values are changed.
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
The source code files for this demo are installed (by default) in the following directory:
Open CS Solution
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxGridViewDemos