none
Paging with number sharepoint list item RRS feed

  • General discussion

  • Hi,

    I am using JSOM to show list item which will have paging also.

    For next/previous it is working but I want the page number also so that users can directly navigate to particular page content without clicking next repeatedly.

    I heard sharepoint jsom does not swupport direct page wise paging it supports only prev and next.

    Is there any other method to achieve it.

    Wednesday, October 26, 2016 12:29 PM

All replies

  • If you are only dealing with limited number of items say 500 or less, it would be easier to cache it locally and manipulate it. If you have to deal with more than that please refer the below example to use the skip and top to get data from pages. 

    https://stackoverflow.com/questions/26305776/office-365-sharepoint-api-skip-skiptoken-functionality


    Thanks & Regards, Balu

    Wednesday, October 26, 2016 12:56 PM
  • $skiptoken=Paged=TRUE&p_ID=<last item id to skip>&$top=<items count>

    here the p_ID is always the last retrieved item ID but i have to navigate to 3rd page item directly.

    Thursday, October 27, 2016 6:37 AM