0
votes

How can I Add a custom Ribbon group to an existing OOB Sharepoint Ribbon tab at run time?

I have a custom web part and I want to add a custom group to Ribbon.Documents Contextual tab at run time.

2

2 Answers

0
votes

You need to provision tab definition using custom actions, and then in you server code use SPRibbon.MakeContextualGroupInitiallyVisible and SPRibbon.MakeTabAvailable to show up you tab. Also you can use CKS.Dev extension for visual studio it contains templates which have some markup and code to help you to start.

0
votes

You can use Javascript to create buttons. Here is the helpful link

http://www.ro.umt.com/blog/2013/11/14/creating-sharepoint-ribbon-elements-in-javascript/

if you look at the createTab() function you see you can create new group using this function CUI.Group .