Tree View Archives : Binary Bits https://blog.binarybits.net/tag/tree-view/ Bits & Pieces - A blog by Kannan Balasubramanian Wed, 23 May 2018 03:57:59 +0000 en-GB hourly 1 https://wordpress.org/?v=6.5.2 Enable tree view in current navigation within SharePoint https://blog.binarybits.net/enable-tree-view-in-current-navigation-within-sharepoint/ https://blog.binarybits.net/enable-tree-view-in-current-navigation-within-sharepoint/#respond Wed, 23 May 2018 03:57:59 +0000 https://blog.binarybits.net/?p=985 Sometime we need to enable tree view in current navigation to help navigate within document libraries. Traditional Way: Site Settings -> Look and Feel: Navigation Elements -> Check ‘Enable Tree View’ Programmatic way using PnP Powershell: try { $web = Get-PnPWeb -Includes TreeViewEnabled Write-Host "Setting options to enable tree view..." $web.TreeViewEnabled = $true $web.Update() Invoke-PnPQuery Write-Host […]

The post Enable tree view in current navigation within SharePoint appeared first on Binary Bits.

]]>
Sometime we need to enable tree view in current navigation to help navigate within document libraries.

Traditional Way:

Site Settings -> Look and Feel: Navigation Elements -> Check ‘Enable Tree View’

Programmatic way using PnP Powershell:

try {
    $web = Get-PnPWeb -Includes TreeViewEnabled
    Write-Host "Setting options to enable tree view..."
    $web.TreeViewEnabled = $true        
    $web.Update()
    Invoke-PnPQuery
    Write-Host "Completed."
}
catch {
    $ErrorMessage = $_.Exception.Message
    Write-Host "Error enabling tree view. $ErrorMessage"
}

The post Enable tree view in current navigation within SharePoint appeared first on Binary Bits.

]]>
https://blog.binarybits.net/enable-tree-view-in-current-navigation-within-sharepoint/feed/ 0