Sharepoint support customizing the user interface using Custom action menu. In this article I would like to explain how to customize the Sharepoint list toolbar menu.
Using sharepoint features make it easy to add action menu to Sharepoint UI. You can use “custom action” element in element.xml file to customize the action menu. In this article I would like to demonstrate how to add custom menu to sharepoint list toobar as as shown above image. Below element.xml file does the job for you.
<Elements xmlns=”http://schemas.microsoft.com/sharepoint/”>
<CustomAction Id=”UserInterfaceCustomActions.MyPanel”
RegistrationType=”List”
RegistrationId=”101″
Location=”ViewToolbar”
Sequence=”1002″
Title=”My Toolbar”>
<UrlAction Url=”~site/_layouts/TestApplication/TestMenu.aspx?ListID={ListId}”/>
</CustomAction>
</Elements>
Above feature will add the custom action menu to document library toolbar, If you want to active action menu for other library refer this, You can download the solution package source code here. Deploying the solution is simple, Download the source code here, Extract the source code and navigate to the extracted location, open the command prompt and type below command
Deploy http://yoursiteURL
For undeploying just type as shown below
Undeploy http://yoursiteURL
Similar Topics:
- Adding Ribbon button in Sharepoint 2010
- List enhancements in SharePoint 2010
- Sharepoint 2010 Quick learn video Tutorial 1
- Microsoft Sharepoint persisting webpart property values
- SharePoint 2010 MSDN article collection for developer
- SPDisposeCheck – Sharepoint Tools to check memory leaks
- Creating the custom theme in MOSS Branding
- Automate Sharepoint 2010 installation using AutoSPInstaller
- Infopath form to HTML using csharp
- More about SharePoint Custom page and Application Page
Hi Sandesh….
Thanks for your article..
Can we remove existing custom menu items like “New”, “Actions”, “Setting”…..
I should make user to just view the LIST… nothing more other than that…..
IS THAT POSSIBLE….
Please help me out…
Thanks in advance…
You can give the view rights to user so user able to see only the list not list menu.