.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Articles >> SharePoint >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Create a Button on Ribbon UI in SharePoint

Posted By:Jean Paul       Posted Date: June 27, 2013    Points: 200    Category: SharePoint    URL: http://www.dotnetspark.com  

In this article we can explore a real world scenario in which a custom button has to be kept on the Ribbon UI.
 

In this article we can explore a real world scenario in which a custom button has to be kept on the Ribbon UI.

Scenario


You have a list named Expenses where the Amount column contains the expense amount.  The list can contain multiple items.  You need a button on the List > Library tab which on click will show the total of the Amount at any point of time.


Solution


The SharePoint Ribbon UI is extensible and we can create custom buttons on it.  The button handler can be targeted for an:


1.  ASPX Page
2.  JavaScript
3.  Third Party Page etc.


We can write custom code to manipulate the current list values, selected list values etc. so that additional flexibility is possible.


We need to create a Feature for this purpose.


Steps


Create a new project named ButtonOnRibbonUI as an Empty SharePoint project:



Choose the Deploy as Farm Solution option and click the Finish button.


We need a Feature to deploy our element.  From the Solution Explorer, right click on the Features special folder and click the Add Feature item.




References


  http://tinyurl.com/sp2010-btnrbn


Summary


In this article we have explored how to create a custom button on the Ribbon UI. The attachment contains the source code we have discussed.


 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend