1

I want to display the total number of items in a view right next to the view name. Something like this:

enter image description here

Is there a way to do this OOTB or using JQuery? I am using SharePoint 2013 Online.

Any help is appreciated.

2

Have you considered grouping the table with the Status ? Which would then show total number of items for each group.

If you prefer to do it as you suggest, yes it can be done using JQuery. You need to use an $.ajax call to retrieve list items. You may be better off with two queries filtering each status option.

Then the Open and Overdue links are stored in DIVs with IDs WPQ2_ListTitleViewSelectorMenu_Container_surfaceopt1, 2 ; allowing you to append the count next to them.

Not a very elegant solution as the order of these items may change. However I see no reason why it wouldn't work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.