Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

How To Show Total Docs/Items In Pagination

$
0
0

I have the following code to supposedly show 1-30 of total docs. However, this code returns a value of 1-30 of undefined. Any thoughts as to how I can show a running total of docs in library or list while I am paging?

<scripttype="text/javascript"src="http://code.jquery.com/jquery-1.10.2.min.js"></script><scripttype="text/javascript">
$(function(){
	setInterval(function(){var count = $('#aggWPQ2 b').text().split("=")[1];var $paging = $('.ms-paging');if($paging.text().indexOf('of')>0){
			$paging.text($paging.text().split('of')[0]+"of "+count);}else{
			$paging.text($paging.text()+" of "+count);}},1000);});</script>


Viewing all articles
Browse latest Browse all 7589

Trending Articles