Friday, 2 December 2011

How to Remove the option of changing views in a list in Sharepoint


Recently someone asked me to provide a way to hide the option of navigating between views in a list.
This can be done by following the simple steps defined below:

1. Open the site in sharepoint designer.
2. Navigate down to the list in question.
3. Check out the AllItems.aspx page which you want to modify and double click on it.
4. Now in the list viewer webpart right click and select "Convert to XSLT dataview".

5. Now select the portion that shows the views dropdown. It will be the Sharepoint view selector Menu as shown

6. Add the attribute visible="false" as shown.
7. Check in the page and you are good to go.

I hope this will help you out.

Rahul Rashu

No comments:

Post a Comment