Display a Custom Button say “Load Data” on the Toolbar of the Sales List
In a Feature say “CustomContextMenu” we declare a Custom Action.
In the elements.xml file at “\CustomContextMenu\elements.xml” you will need to add this snippet.
Title="Load Data" >
RegistrationId is the “Type” id found in the elementManifest.xml of the List on which you want to show the button. Here in our case if you open the elementManifest.xml of Sales List.
You will find that “Type” for this list is “10031”
Location="ViewToolbar". We want the Button to appear on the Tool Bar of the List.
In UrlAction mention the url where you want the control to navigate when you press the button.
Share your SharePoint Experiences with us...
As good as the SharePointKings is, we want to make it even better. One of our most valuable sources of input for our Blog Posts comes from ever enthusiastic Visitors/Readers. We welcome every Visitor/Reader to contribute their experiences with SharePoint. It may be in the form of a code stub, snippet, any tips and trick or any crazy thing you have tried with SharePoint.
Send your Articles to email@example.com with your Profile Summary. We will Post them. The idea is to act as a bridge between you Readers!!!
If anyone would like to have their advertisement posted on this blog, please send us the requirement details to firstname.lastname@example.org