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

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s