Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

SP2013-Javascript Object Model : ListItemCollectionPosition for paging backwards

$
0
0
Hello All,

I am getting data from a sharepoint list based on certain filter criteria.

I am getting the records using javascript object model. This is working fine.

I am facing issue with pagination.

I have referred this article :

http://social.technet.microsoft.com/wiki/contents/articles/18606.sharepoint-2013-paging-with-sharepoint-client-object-model.aspx

This works for "Next Page". Doesnt work for "Previous Page" in my case, because the values are retrieved randomly. So,the IDs are not consecutive.

Does "listItemCollectionPosition" work only for data which is consecutive?

previousPagingInfo = "PagedPrev=TRUE&Paged=TRUE&p_ID=" + myListItems.itemAt(0).get_item('ID');
This code doesnt work properly, some records are getting missed out.

Please suggest.

Thanks.

Viewing all articles
Browse latest Browse all 11508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>