I want to display a list in SharePoint Online in my Add-In using JavaScript, but if possible use all the features a stock List offers, like sorting and filtering (especially those two).

Therfore I was wondering whether it is possible to use a normal SharePoint List to display my content (e.g. a list of certain users, sites...) without actually saving the entries to the SPList.

Do you know a way to achieve this, or is it at all possible?


I would create a spfx webpart where you load the information to the webpart using lets say the REST api or CSOM. And then use the built in function for filtering in the Office UI fabric components or if you build your own filtering.

As @Derek Gusoff is mentioning in the comment below, you can also use the ui fabric without the spfx model. Many of the components are really useful in other applications. Lets say that you are building a providerhosted addin and want to use the same design language. Well why not use Office-UI-Fabric.

See a demo of the DetailsList component here: DetailsList

  • Good answer, I would add that you can also use Office Fabric separate from spfx in classic SharePoint. – Derek Gusoff Aug 17 '18 at 13:21
  • Thank you, updated my answer with your suggestion. – Johan Brännmar Aug 17 '18 at 13:25

A slightly easier approach (if you are familiar with search templates and don't have any inhouse devs to create the web part) could be to customize an item template to show the list content and add the addition info on the fly using basic html and js

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.