I am filtering a list by passing query string to a custom list

http://TestSite/TestSubsite/Lists/TestList/allitems.aspx?FilterField1=FirstName &FilterValue1=Apelles

This does the job of filtering the list, but once its done i want the filtering options on the column header either to be locked or unclickable so that nobody filter it further below is the screen shot of one column enter image description here

  • 1
    Since the filter parameters will be on the URL, they can change them anyway. Does disabling the filtering options on the columns make sense? If so, do you want to disable all columns or just the one you are filtering on currently? Feb 12, 2012 at 0:01
  • Hi Marc, i want to disable only the column that i am currenlty filtering
    – SandeshR
    Feb 12, 2012 at 2:46

2 Answers 2


You can add some script to the page to alter or disable the behavior on the Contact Name column header. If you write the function generically, you could apply it to multiple columns.


You can do it using SharePoint designer. Open the page where u have added the list view web part. Then find the column for which you want to disable the filter inside XSLT WP. Add a "filterable" attribute.

<FieldRef Name="Contact Name" Filterable="False" />

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.