在Microsoft Dynamics CRM 2011中采用新的Ribbon并且可以点击收起和放下, 但默认Ribbon是放下显示的, 以下表单的onload脚本可以使之默认收取collapse:
parent.document.getElementById('minimizeribbon').click();
如果想彻底隐藏ribbon中的tab或group或某个具体button, 请导出该实体的customization, 并在RibbonDiffXml节中添加CustomActions,
<CustomActions>
<HideCustomAction Location="要隐藏的ribbon的tab或group或button的ID" HideActionId="要隐藏的ribbon的tab或group或button的ID.HideAction"/>
</CustomActions>
如以下例子隐藏"客户"表单ribbon中"客户"tab
<CustomActions>
<HideCustomAction Location="Mscrm.Form.account.MainTab" HideActionId="Mscrm.Form.account.MainTab.HideAction"/>
</CustomActions>
效果如下(默认收起ribbon和隐藏"客户"tab):