SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a problem with customizing Ribbon for webparts with "Summary Toolbar". I add the button through CAML code. (Generated by SPSF, but shouldn't matter)

My buttons shows up when viewing the list directly, or in webparts with "Full toolbar".

I have tried to registered my buttons to both content types and list definitions, but it still has the same behaviour.

I found a couple of blog posts with other people struggeling with the same problem, this one describes it well with screenshots:

Has anyone managed customizing the ribbon with summary toolbar? Is this the intended behaviour?

<?xml version="1.0" encoding="utf-8"?>
<!-- Code initially generated with SharePoint Software Factory 2010, Version 3.1, -->
<Elements xmlns="">
                    ToolTipDescription="Description of RibbonSampleContentTypeButton1"
                    TemplateAlias="o2" />
                CommandAction="javascript:alert('Hello, world');" />
share|improve this question
up vote 1 down vote accepted

The view's ToolbarType must internally be "Freeform" (which seems to equate to "Full toolbar"). Otherwise, if the ToolbarType is either "Standard" (summary) or "ShowToolbar" (the v3 type), the view's custom toolbar won't render.

A delegate control or custom page component could bootstrap customizations using reflection + the instance returned by SPRibbon.GetCurrent(), or possibly initialize and add the DataFormWebPart's ToolbarControl -- but this would really just be a very awkward way of switching the view's toolbar type. Automating the latter would be a lot easier.

share|improve this answer
Thanks. I guess manually updating the existing webparts and telling the customer to use "Full toolbar" is going to be the chosen solution, eventually programatically change the toolbar type. – Brage Tukkensæter Apr 11 '11 at 10:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.