Share via


GridSerializer.ReserveHierarchy<TTag> method (DataTable, String, String, Boolean, HierarchyValidationMode, DataTable)

Sets up the unfiltered hierarchy table. The DataTable should contain two columns, "Key" and "Parent". DBNull.Value is a valid value for the Parent column. The two other strings represent the columns that will be used when interacting with the real data.

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

Syntax

'Declaration
Public Sub ReserveHierarchy(Of TTag As IJsonSerializable) ( _
    unfilteredHierarchyTable As DataTable, _
    hierarchyParentKeyColumnName As String, _
    hierarchyOutlineTextColumnName As String, _
    serializeUnfilteredHierarchy As Boolean, _
    validationMode As HierarchyValidationMode, _
    explicitFilteredRows As DataTable _
)
'Usage
Dim instance As GridSerializer
Dim unfilteredHierarchyTable As DataTable
Dim hierarchyParentKeyColumnName As String
Dim hierarchyOutlineTextColumnName As String
Dim serializeUnfilteredHierarchy As Boolean
Dim validationMode As HierarchyValidationMode
Dim explicitFilteredRows As DataTable

instance.ReserveHierarchy(unfilteredHierarchyTable, _
    hierarchyParentKeyColumnName, hierarchyOutlineTextColumnName, _
    serializeUnfilteredHierarchy, validationMode, _
    explicitFilteredRows)
public void ReserveHierarchy<TTag>(
    DataTable unfilteredHierarchyTable,
    string hierarchyParentKeyColumnName,
    string hierarchyOutlineTextColumnName,
    bool serializeUnfilteredHierarchy,
    HierarchyValidationMode validationMode,
    DataTable explicitFilteredRows
)
where TTag : IJsonSerializable

Type parameters

  • TTag

Parameters

See also

Reference

GridSerializer class

GridSerializer members

ReserveHierarchy overload

Microsoft.SharePoint.JSGrid namespace