Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

[BUG] List view with type "GRID" not visible in view selector in toolbar after provisioning #2798

Open
fheinicke opened this issue Oct 30, 2020 · 1 comment

Comments

@fheinicke
Copy link

fheinicke commented Oct 30, 2020

Environment

[ ] Office 365 / SharePoint Online
[x] SharePoint 2016
[ ] SharePoint 2013

If SharePoint on-premises, what's exact CU version:
September 2020 CU for SP 2016

Expected Behavior

List views that use the grid / data sheet / quick edit mode should be correctly provisioned when applying a PnP provisioning template to a site. These list views should be visible in the view selection menu in the toolbar of the list view.

Observed Behavior

List views with grid mode enabled are provisioned to the list when applying the template. They can be seen in the list settings page and can be selected in the view selection dropdown in the ribbon bar. They are not visible in the view selection menu in the toolbar of the list, whereas all "normal" (non-grid views) are listed there.

grafik

Steps to Reproduce

  • Create a basic custom list
  • Add a list view (lets name it "TestView") with the grid type (i.e. quick edit mode enabled per default)
  • Export the site structure as a PnP template
  • Import the PnP template into an empty site
  • The list view "TestView" can be seen in the settings page of the imported list and the view selector in the ribbon bar. It is missing from the view selector in the toolbar.

Underlying issue / Steps to Fix

The schemas of the original and imported list views are similar. The actual issue seems to be with the XsltListViewWebPart that is used to show the view.

Comparing the properties of the webpart of the source and target views, the ViewFlags property is set to a different value (TabularView, Grid instead of Html, TabularView, Grid). Tests showed that setting that property to the correct value for the list view webpart lets it reappear in the view selector in the toolbar.

The calendar views seem to have had an issue that was fixed by adjusting the view type (see

), but i have not tested whether adding ViewType.Html to the view type would fix the issue in the list view webpart.

Related issue

The issue pnp/PnP-Provisioning-Schema#320 seems to describe the same problem, but was closed because it was filed in the wrong repo.

@ghost
Copy link

ghost commented Oct 30, 2020

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

@ghost ghost added the Needs: Triage 🔍 label Oct 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant