SharePoint PivotView Web Part

Toolbar Custom Action Button and Enable multiple selection


In order to add toolbar button, select checkbox Show toolbar action button.
Enter button text or define image Url.



Select Action Url action type for the button in order to set redirect to define Url after button click.  Or use ActionScript to run JavaScript code. 
In case Action Script is selected, use Script…button to enter JavaScript code. Script usage sample code will be entered in the displayed window by default. 
Value <%VirtoCheckedItemsArray%> will be replaced with mass that contains keys and values of selected items.  


In order return the default code, use Reset button.
Click Save when you have entered your code.  Or use Cancel to cancel operation and close enter script editor window.  


To allow selection of items, use checkbox Enable multiple selection
Select facet category that will be used as a key and facet category that will be used as a value. These keys and values can be used in JavaScript code.
Every item will have a button that will make this item checked after clicking it (or unchecked, in case of second click)
The text of button has to be entered in the Action field. Tooltip can be entered in Description field. Tooltip will be displayed when pointing mouse on the button.
The quantity of selected items is shown on the toolbar.


In order to cancel the selection of items, use button (red cross icon) opposite Selected: field.