GridRowViewModelExtensions¶
Single extension method that resets a grid's pending-change tracking after a successful save while deliberately preserving the currently displayed rows.
Purpose¶
- Single extension method that resets a grid's pending-change tracking after a successful save while deliberately preserving the currently displayed rows.
Context¶
- Namespace:
SAIF.Web.Mvc.ViewModels - Assembly/package:
SAIF.Framework.Web.Mvc (source-shipping NuGet package) - Kind: static class
Public members¶
| Member | Signature | Purpose |
|---|---|---|
| ClearAll |
public static void ClearAll<T>(this GridViewModel<T> grid) |
Replaces Added, Deleted, and Updated with new empty lists, leaving Rows untouched; see the "Clear grid pending-change collections" operation and BR-64. |
Sources¶
src/Web.Mvc/ViewModels/GridRowViewModel.cs