SharePoint Designer 2013: Dataview is grayed out
Introduction
In SharePoint Designer 2013, in some cases, when trying to add a DataView in a web part page, you may find that the** DataView is disabled** as shown below:
In this article, we will list most of the causes of this issue and how to solve it?
Cause
In SharePoint Designer 2013, the DataView may be grayed out in case of:
- The current site Master Page is Oslo Master Page.
- The page is not checked out and edited in Advanced Mode.
- The HTML is not parsed properly.
- The Data View is not added to an inappropriate tag/place.
Solution
The current site Master Page is Oslo Master Page
It looks like a bug in SharePoint designer 2013 where you can't add DataView to a page in a site has Oslo Master Page.
To overcome this issue,
- You should temporarily change the master page from Oslo to Seattle.
- Add your DataView to your page in SharePoint Designer.
- Go back to change the Master Page again from Seattle to Oslo.
To change the Master Page on the Team site from Oslo to Seattle.
To change the Master Page on the Publishing site from Oslo to Seattle.
After changing the Master Page from Oslo to Seattle, you can now add DataView to your page without any issue as shown below.
Now, you can change back your master page to the old one as you prefer!
The page is not checked out and edited in advanced mode
In case you didn't check out the page and it is not edited in Advanced Mode,
- You will note that the Data View is enabled but You are not able to add it to list or other data source,
- The only available data view is the Empty Data View.
So to make the page is ready for Edit, you should do the following:
- Right-click the page > Check out the page.
- Again, right-click the page > Edit File in Advanced Mode.
The Data View is not added to an inappropriate tag/place
The Data View web part should be added to your page within WebPartPages:WebPartZone before </ZoneTemplate>
**Note: ** there are specific tags/places that do not accept to add the Dataview to it like PlaceHolderPageTitle
So make sure that you try to add the data view in the correct place.
The HTML is not parsed properly
As we have above mentioned, the Data View Web Part should be added within WebPartPages:WebPartZone before </ZoneTemplate>
But if you have clicked enter or space on the keyboard. In this case, the HTML will not be parsed properly and you should click on HTML Parse button in the Edit Tab from the above ribbon to can add the Data View.
Applies To
- SharePoint 2013.
- SharePoint 2016.
Reference
Conclusion
In this article, we explained the common causes of Dataview disabled and how to enable it in SharePoint Designer 2013.