1

I am trying to hide Built-In Groups (GroupContactsNew) in TabContacts. I have tried below CustomUI but "getTabContactGroupEnabled" never fires.

Does anyone knows how to do this? BTW: I was able to make entire "TabContacts" tab invisible by registering "getVisible" callback method at tab level.

<?xml version="1.0" encoding="utf-8" ?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">


<ribbon startFromScratch="false">
<tabs>
  <tab idMso="TabContacts">  
<group idMso="GroupContactsNew" getEnabled="getTabContactGroupEnabled">
    </group>
  </tab>
</tabs>

Regards, Ramesh

1 Answers1

0

Ramesh,

You need to rebuild the UI from scratch setting the startFromScratch attribute to true and defining tabs, groups and controls anew, declaring them with the idMso values. In that case you will be able to handle callbacks of the built-in controls.

Read more about the Ribbon UI (aka Fluent UI) in the following series of articles in MSDN:

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45