I recreated a few buttons from the ribbon; I used the same XML to define the buttons.
The OOTB buttons are located on the ribbon in the contextual tab in lists. I want to take a few buttons like Navigate Up and Current view + dropdown list and place them on the item tab.
I have replicated the buttons, and it works very well since I see them.
But I've encountered an issue with the functionality; the new buttons do not work at all. The Navigate Up button is always greyed out. And the current view dropdown menu is empty and doesn't show anything. I left the commands for the buttons the same, so it seems like it should work.
I think there is something amiss with the functionality. Does anyone know what exactly could cause this problem and how to solve it?
Another problem is that when these buttons are shown, the OOTB current view dropdown in the list tab doesn't show other views - even if they are available. It just doesn't open.
Update: Just to clerify, here is an example of the button which i copied from CMDUI.XML
<Button Id="Ribbon.Documents.CustomGroup.NavigateUp" Sequence="40" Command="NavigateUp" Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png" Image16by16Top="0" Image16by16Left="-56" Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png" Image32by32Top="-64" Image32by32Left="0" LabelText="$Resources:core,cui_ButNavigateUp;" ToolTipTitle="$Resources:core,cui_ButNavigateUp;" ToolTipDescription="$Resources:core,cui_STT_ButNavigateUp;" TemplateAlias="o1" />
So this has a command "NavigateUp", this command is called from SP.Ribbon.js. But in my case nothing happens.