3

I'm trying to roll data from multiple lists into one web part using Visual Studio, preferably a Visual Web Part. I want it to look like a normal SharePoint list view, with options to sort, filter, and group (and select an item with inline checkbox if possible). I've gotten close using SPGridView, but setting AllowFiltering and AllowSorting didn't make filtering/sorting appear. SPListView has the look I want, but I could only get it to bind to one list.

What class would be the best starting point, and should use a visual web part or basic web part?

3
  • 1
    If you are able to add some Angular, take a look at ngofficeuifabric.com/demos/uifTable It will be more (SharePoint) future proof Commented May 25, 2016 at 16:46
  • I've assumed Angular is client-side? Commented May 25, 2016 at 17:32
  • Yes, see Angular.io. With the new SharePoint Fx (aka SharePoint Future, aka Sp2016) the focus will be more and more on Front-End technologies Commented May 25, 2016 at 18:18

1 Answer 1

2

SPGridView can be customised to make it look similar to list view.

For filtering and sorting you need to code and handle OnSorting and OnFiltering events.

http://www.c-sharpcorner.com/UploadFile/b8e86c/pagination-sorting-and-filtering-in-spgridview/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.