Display more than 3 views in SharePoint Lists

Sometimes in SharePoint list page we might want to display more than the default size of view visible. The default number of view display is 3.

So what if if we need to display four.

Here is how you can do it

  • Edit the default view page let’s say Allitems.aspx

    EditPage
    Edit the All Items.aspx
  • It brings the page with web part zones
    AddScriptEditorWebpart
    Add Script Editor WebPart

     

  • Edit the Script Editor Web-part and add following  a script
    Addsnippett script editor.png
    Edit snippet and add follwoing scripts

     
    ExecuteOrDelayUntilScriptLoaded(overrideSurfacePivotCount, ‘clienttemplates.js’);function overrideSurfacePivotCount() {
    ClientPivotControl.prototype.SurfacedPivotCount = 4;
    };

You can increase the Pivot-count to the number of view you like to have.

Now save the page and you should see the fourth view in the default page of  the list.

This will only work in SharePoint 2013 or other on premise SharePoint but it will not work in SharePoint Online.

Credit to : https://sharepoint.stackexchange.com/questions/114806/how-to-display-more-than-three-views-in-sharepoint-2013

 

Advertisements

Leave a Reply

Your email address will not be published. Required fields are marked *