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.

Namespace:  Microsoft.SharePoint.JSGrid
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub ApplyPostViewIncrementalInsertsAndDeletes ( _
    changes As IEnumerable(Of Change), _
    fnGetDefaultValuesForPostViewInserts As Func(Of Object, Dictionary(Of String, Object)) _
)
'Usage
Dim instance As GridSerializer
Dim changes As IEnumerable(Of Change)
Dim fnGetDefaultValuesForPostViewInserts As Func(Of Object, Dictionary(Of String, Object))

instance.ApplyPostViewIncrementalInsertsAndDeletes(changes, _
    fnGetDefaultValuesForPostViewInserts)
public void ApplyPostViewIncrementalInsertsAndDeletes(
    IEnumerable<Change> changes,
    Func<Object, Dictionary<string, Object>> fnGetDefaultValuesForPostViewInserts
)

Parameters

  • fnGetDefaultValuesForPostViewInserts
    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.

Remarks

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.

See Also

Reference

GridSerializer Class

GridSerializer Members

ApplyPostViewIncrementalInsertsAndDeletes Overload

Microsoft.SharePoint.JSGrid Namespace