GridSerializer.ApplyPostViewIncrementalInsertsAndDeletes Method (IEnumerable<Change>, Func<Object, Dictionary<String, Object>>)
Applies relevant record insert and delete changes to the input data table before slicing occurs.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
public void ApplyPostViewIncrementalInsertsAndDeletes( IEnumerable<Change> changes, Func<Object, Dictionary<string, Object>> fnGetDefaultValuesForPostViewInserts )
- Type: System.Collections.Generic.IEnumerable<Change>
An ordered set of record insert and delete changes that have occurred on the client since the last row view or table view change.
- Type: System.Func<Object, Dictionary<String, Object>>
A function that returns the default values for a specified record key in a dictionary that maps field name to data value. Required if all newly created records have a non-default value for a field of a particular type. For example, suppose all rows have a field of type int32 with a default value of 100 (instead of 0, which is the default value for the int32 type). In this scenario, this function must be specified, and it must return a dictionary that contains an entry whose key is "<field name>" and whose value is 100.
This method is needed because the indices used to represent the slice come from the client and are therefore affected by record inserts and deletes that have occurred on the client. To keep the record indices on the server synchronized with those on the client, all record inserts and deletes that have occurred after the last row view or table view change must be sent to the server and applied.