Quantcast
Channel: Mavention
Viewing all articles
Browse latest Browse all 715

Show more than the standard 3 views of a SharePoint list

$
0
0

​​My customer created several views on a SharePoint list. However the toolbar shows only the first 3 views and ellipses ahead of that to select the other views. 

Their wish is to show all the views in the toolbar and only ellipses for 'Modify this View' and 'Create View'.
Here's how to specify the amount of views:

Just add a scripteditor on the page with this script:

<script type="text/javascript">
ExecuteOrDelayUntilScriptLoaded(overrideSurfacePivotCount, 'clienttemplates.js');
function overrideSurfacePivotCount() {
ClientPivotControl.prototype.SurfacedPivotCount = 8;
};
</script>

The "8" on the 4th line of code is where you enter the amount of views.


Viewing all articles
Browse latest Browse all 715

Trending Articles