SharePoint Framework need suggestions to implement paging and filteration

Copper Contributor

I'm working on SharePoint Server 2016 and developing client side webparts using SharePoint Framework.

I've a requirement to filter the data and adding the pagination, I've used the followings till now

1) PnP Core JS (To Perform CRUD operations to SharePoint)

2) VUE JS (To Render the data)

 

ISSUES

1) I'm unable to filter the data as VUE JS computed properties are not working check that thread, also i've installed the npm package for ASYNC plugin but no good luck

2) For pagination check here, it would be same issue for updating the DOM using Vue js.

 

Please suggest me which framework/tools should i use to get the data from SharePoint and then apply filter and pagination in SharePoint framework client side webparts for On Premises.

 

Thanks

2 Replies

Hi Hamid,

SharePoint Framework by design support Office UI Fabric React components. I have used Office UI Fabric -DetailList component for similar purpose by loading data with help of PnP JS Core library. With DetailList, you don't need to worry about paging as it only renders selective data in HTML DOM and as user scrolls the page, it loads the data without blocking user. You can bind whole data set in one go with DetailList and it will take care of render part. It also support search feature which you can implement easily.

 

 

Hi Rahul, thanks for the reply

 

Actually i need to load data on demand means when i click on next page then query should return the next page data. btw i'm able to done it using SharePoint search Rest API supported in PnP JS Core.