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 created custom action to view on webpart page but i can not see it.

<Elements xmlns="">
  <CustomAction Id="MyRibbonCustomization" Location="CommandUi.Ribbion">
        <CommandUIDefinition Location="Ribbon.WebPartPage.Groups._children">
          <Group Id="Ribbon.WebPartPage.MyRibbonWebPart"
                 Description="Custom ribbion"
                 Title="ribbion Addition"
            <Controls Id="Ribbon.WebPartPage.MyRibbonWebPart.Controls">
              <Button Id="Ribbon.WebPartPage.MyRibbonWebPart.DemoButton"
                      Description="A DemoAction"
                      LabelText="Demo Action"
      </CommandUIDefinitions> // I had to ..
        <CommandUIHandler Command="demoAction" CommandAction="javascript:alert('hello');" />
share|improve this question
@Raja,Thanks... – Harsh Bhavsar Apr 30 '13 at 8:17
So you followed all of steps in this post or are you doing something else,… – Muhammad Raja Apr 30 '13 at 8:21
Yes..I had followed it. Also refer this link( – Harsh Bhavsar Apr 30 '13 at 8:47
Make sure your location attribute is correct: CommandUI.Ribbon as I notice your example has CommandUi.Ribbon (lowercase i on the end) – spevilgenius Apr 30 '13 at 10:44
Done but again same Result.. – Harsh Bhavsar Apr 30 '13 at 12:25

Your Answer


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

Browse other questions tagged or ask your own question.