title: Ribbon button disabled after programmatically adding to SharePoint 2010 Ribbon
body: <p>I followed this <a href="http://www.projectserver2010blog.com/2010/01/sharepoint-2010-ribbon-customization_06.html" rel="nofollow">link</a> to create custom ribbon tab/group/controls in a custom web part.</p>
  
  <p>The custom ribbon tab/group/control renders when web part is displayed on the page, however, all the buttons are disabled.</p>
  
  <p>What I did:</p>
  
  <ol>
  <li>During OnLoad event, initialized List of IRibbonCommand with all my button command id; initialized page component and registered with SPRibbonScriptManager; registered ribbon scripts for getglobalCommands, commandEnabled, and handleCommand.</li>
  <li>During OnPreRender event, use SPRibbon to load XML and RegisterDataExtension for the whole  structures; use SPRibbon to MakeTabAvailable and set InitialTabId.</li>
  </ol>
  
  <p>PageComponent script has been registered and initialized properly. Tab/Group/Control are displayed but buttons are disabled and the info indicates 'the control is currently disabled'. I am the site administrator and have full permission so security is not a problem.</p>
  
  <p>Any idea?</p>