Share via


GridSerializer.EnableHierarchyWithExplicitFilter<TTag> method

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 Parent column points to the index, not at the key. 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 EnableHierarchyWithExplicitFilter(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.EnableHierarchyWithExplicitFilter(unfilteredHierarchyTable, _
    hierarchyParentKeyColumnName, hierarchyOutlineTextColumnName, _
    serializeUnfilteredHierarchy, validationMode, _
    explicitFilteredRows)
public void EnableHierarchyWithExplicitFilter<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

Microsoft.SharePoint.JSGrid namespace