RSS Feed Is this your first time here? Get regular updates

SharePoint Designer 2013 – How to modify List View web part filters and parameters

Date:May 30th, 2014 Author: Tags: , , ,
Category: Filter, FilterPoint Web Part, General, SharePoint Development, SharePoint Ideas Comments:9 ;

SharePoint Designer is especially useful for things like setting up complex filters and parameters for List View web parts like ‘wildcard’ searches and ‘before or after a date’ filters.

In SharePoint Designer 2013 (SPD 2013) the “Design View” was (controversially) removed so now it’s a little harder to use as you have to wade through some X/HTML soup. There is also a bit of a wicked bug that’s going to trip you up as well so in this post I am going to give a few tips on how get to the Parameters and Filters options in the ribbon menu.

SharePoint Desinger 2013 - Filter and Parameters

Note –this post is NOT a tutorial on how to use SharePoint Designer (its complex and worth a whole book in itself) but just a few tips for those already familiar with using SPD on how to do use the 2013 version. It won’t put back all you’ve lost, just allow you to access the Parameter & Filter options.

Missing Designer View and finding the List View Web Part

When you edit a page the most obvious difference in SPD 2013 is that you don’t get a Design View (the WYSIWYG view that allows you to see how the page will look whilst editing it). Instead you’ve only got the code view and you’re going to have to work through some angle bracket gibberish!

You’re looking for the code that defines the list view – it starts with <WebPartPages:XsltListViewWebPart and ends with </WebPartPages:XsltListViewWebPart> (pink in the pic here).

SharePoint Designer 2013 - how to find List View Web Part LVWP in code view

But save your eyes! Just search (CTRL+F) for XsltListViewWebPart! If the cursor is between the two XsltListViewWebPart tags then this is the same as clicking on the List in the old Design / Split view.

(If there are more than one List View on the page you will have to figure out which is which by the position of the web part in the page or look for the URL listed in TitleUrl, DetailLink or Url)

Getting the List View Tools options to show in the Ribbon

After putting the text cursor (or clicking) in the code that makes up the List View web part the ribbon should show the List View Tools option.

Except… there is a wicked bug in SPD 2013 at the time of writing that means the Ribbon doesn’t update to show the Options menu (unless you’ve turned off Server Rendering).

The trick (given to me by MdMazzotti) is to right click on XsltListViewWebPart then select Tag Properties and then click OK without clicking anythingSPD - Tag PropertiesYou will now have access to the List View Tools > Options ribbon and the Filter and Parameters button (see picture at the top of this page) SPD - Web Part Properties

You can view these steps in a video :-

Unable to display content. Adobe Flash is required.

Tags: , , ,

Did you enjoy this post? Get the next one by RSS or by email

9 Responses to “SharePoint Designer 2013 – How to modify List View web part filters and parameters”

  1. John Nowlin says:

    Thanks, this was very helpful. I have followed these instructions and built my filter. In fact I put four [or] filters on the same page. The filters work as expected.

    One thing not working, is the sort on the column headings of the listview, if they are clicked on, to for instance sort one of the columns all of the data goes away and I have to close the browser before it will allow me to re-use the filter.

    Also, how to I allow the user to view all list if the filter boxes are blank?

    I appreciate your help,

    John Nowlin

  2. Ryan says:

    @John – not sure what the problem is re: the col headers and sorting but that has to a SharePoint ‘issue’ – only thing I can think off is to turn off that (its in list or view settings somewhere I think) and have have fixed sorting – perhaps multiple different pages and views if you need to sort different ways. Not great I admit.

    re: Show everything – I don’t know of a way to do that with the built in LVWP when you do something like this. Sorry!

  3. Rich says:

    Thank you for saving me from what could have been a horrible day. What an annoying little bug!!

  4. Faisal says:

    Thanks!! After long struggle your solution works. Thanks a lot for this post keep posting…;)

  5. Rujal Jariwala says:

    Really very helpful post.
    Here I am filtering data according to “Created By”. It works fine on page render but facing an issue that when I click on Sorting option.. it gives all the values exist in list. And clicking for filtering it gives all values in dropdown to filter. How can I put filter user specific.
    How can put filter on this values also.
    I am using XsltListViewWebPart tag.

  6. Sanket Shah says:

    This is really useful article, It helps me to find List view ribbon in SharePoint 2013.

    Thank you for sharing your knowledge.

  7. sameera says:

    Is this applicable in updated version of SPD 2013?

    It’s not working for me. In my case, When I right click inside the XsltListViewWebPart tag on Tag properties, I get a different context menu: Page Properties. After clicking OK nothing appears in the ribbon.
    Thank you

  8. C Scott says:

    I have the same issue, selecting the tag properties I get a page properties and after clicking OK nothing appears. I have done this before so I am wondering if it is an update to sharepoint at some point?

  9. Gunnar Lindquist says:

    Great! At last You’ve given me the key to solve my problem.
    Now I only have to insert my new List Web Part into 125 pages… You are truly a hero in my World!!

Leave a Reply

Anti-Spam Quiz: