다음을 통해 공유


GridSerializer.ReserveHierarchy Method

For use when a Microsoft.SharePoint.JSGrid instance is populated by multiple GridSerializer objects over its lifetime, this method notifies the GridSerializer object that hierarchy could be enabled later in the lifetime of the Microsoft.SharePoint.JSGrid instance being configured. Must be called on the initial GridSerializer object for that Microsoft.SharePoint.JSGrid instance.

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

Syntax

'Declaration
Public Sub ReserveHierarchy ( _
    unfilteredHierarchyTable As DataTable, _
    hierarchyParentKeyColumnName As String, _
    hierarchyOutlineTextColumnName As String, _
    serializeUnfilteredHierarchy As Boolean _
)
'Usage
Dim instance As GridSerializer
Dim unfilteredHierarchyTable As DataTable
Dim hierarchyParentKeyColumnName As String
Dim hierarchyOutlineTextColumnName As String
Dim serializeUnfilteredHierarchy As Boolean

instance.ReserveHierarchy(unfilteredHierarchyTable, _
    hierarchyParentKeyColumnName, hierarchyOutlineTextColumnName, _
    serializeUnfilteredHierarchy)
public void ReserveHierarchy(
    DataTable unfilteredHierarchyTable,
    string hierarchyParentKeyColumnName,
    string hierarchyOutlineTextColumnName,
    bool serializeUnfilteredHierarchy
)

Parameters

  • unfilteredHierarchyTable
    Type: System.Data.DataTable

    A parameter that is required if hierarchical editing operations are enabled.

  • hierarchyParentKeyColumnName
    Type: System.String

    The values column should correspond to the record keys of that record’s parent. This needs to be provided if the unfilteredHierarchyTable parameter is omitted.

  • hierarchyOutlineTextColumnName
    Type: System.String

    Specifies which grid column should display the controls used to expand and collapse hierarchy nodes.

  • serializeUnfilteredHierarchy
    Type: System.Boolean

    Specifies if the unfiltered hierarchy should be sent down the client.

See Also

Reference

GridSerializer Class

GridSerializer Members

Microsoft.SharePoint.JSGrid Namespace