web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to add submenus in the Ribbonworkbench in crm 2016

(0) ShareShare
ReportReport
Posted on by 675

Hi all,

We have this menu as of now in our CRM. However the menu options might grow in future. 

6558.menu1.jpg

What we need is that we need to group the last 3 menu options and show in next level like:

- Fetch Prices

- Print    -> Print Normal

-> Test Print

-> Send Offer

So can we have something like this in ribbon workbench and simplify the menu. 

Any suggestions/workarounds are appreciated.

Thank you,

Prashant.

*This post is locked for comments

I have the same question (0)
  • VPrashant Profile Picture
    675 on at

    Any suggestions CRM gurus? I am also trying to check menus containing jquery. But something I need to check this with old menu style that we have currently going on.

  • VPrashant Profile Picture
    675 on at

    Hello,

    any workarounds or any links to Flyoutanchor or something like that?

  • Suggested answer
    Wouter Madou Profile Picture
    3,392 on at

    Read up on the following tutorial from 1 t 5; ribbonworkbench.uservoice.com/.../71374-1-getting-started-with-the-ribbon-workbench

    In this case particular the group section.

  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    HI Prashant,

    If you want a sub-menu you simply need to drag another Flytout Button onto the menu instead of the Print button.

    You can also dynamically build menus using Javascript if you need to - but it's certainly easier to pre-define the menu items.

    See how to dynamically build then - develop1.net/.../Add-Dynamic-Menu-to-Ribbon-Button.aspx

    Hope this answers your question?

  • VPrashant Profile Picture
    675 on at

    Hi Wouter and Scott,

    @Wouter - Thank you for your reply. I had read that earlier but somehow didn't managed to work on it. But still Thank you very much.

    @Scott - Your answer on this site helped me a lot. https://www.gittprogram.com/question/769892_multi-level-ribbon-menu.html

    And then tweaking some of my requirements there I managed to get the desired output.

    Sharing the code and image for future searchers.

    Credit goes to you Scott. (already following you on twitter ;) )

    Thanks a lot !!!

    <CommandUIDefinition>

    <FlyoutAnchor Command="Mscrm.Enabled" Id="Form.campaign.MainTab.Save.Menu" LabelText="$LocLabels:Form.campaign.MainTab.Save.Menu.LabelText" Sequence="75" >

    <Menu Id="Form.campaign.MainTab.Save.Menu.Menu">

    <MenuSection Id="Form.campaign.Section2.Section" Sequence="10" DisplayMode="Menu16">

    <Controls Id="Form.campaign.Section2.Section.Controls">

    <Button Id="Form.campaign.MainTab.Save.Price" Command="Form.campaign.MainTab.Save.Price.Command" Sequence="20" LabelText="$LocLabels:Form.campaign.MainTab.Save.Price.LabelText" ToolTipTitle="$LocLabels:Form.campaign.MainTab.Save.Price.ToolTipTitle" ToolTipDescription="$LocLabels:Form.campaign.MainTab.Save.Price.Description" TemplateAlias="isv" />

    </Controls>

    </MenuSection>

    <MenuSection Id="Form.campaign.Section3.Section" Sequence="10" DisplayMode="Menu16">

    <Controls Id="Form.campaign.Section3.Section.Controls">

    <FlyoutAnchor Command="Mscrm.Enabled" Id="Form.campaign.MainTab.Print.Menu" LabelText="$LocLabels:Form.campaign.MainTab.Print.Menu.LabelText" Sequence="75" >

    <Menu Id="Form.campaign.MainTab.Print.Menu.Menu">

    <MenuSection Id="Form.campaign.Section5.Section" Sequence="10" DisplayMode="Menu16">

    <Controls Id="Form.campaign.Section5.Section.Controls">

    <Button Id="Form.campaign.MainTab.Print.Print" Command="Form.campaign.MainTab.Print.Print.Command" Sequence="20" LabelText="$LocLabels:Form.campaign.MainTab.Print.Print.LabelText" ToolTipTitle="$LocLabels:Form.campaign.MainTab.Print.Print.ToolTipTitle" ToolTipDescription="$LocLabels:Form.campaign.MainTab.Print.Print.Description" />

    <Button Id="Form.campaign.MainTab.Print.PrintPreview" Command="Form.campaign.MainTab.Print.PrintPreview.Command" Sequence="21" LabelText="$LocLabels:Form.campaign.MainTab.Print.PrintPreview.LabelText" ToolTipTitle="$LocLabels:Form.campaign.MainTab.Print.PrintPreview.ToolTipTitle" ToolTipDescription="$LocLabels:Form.campaign.MainTab.Print.PrintPreview.Description" />

    </Controls>

    </MenuSection>

    </Menu>

    </FlyoutAnchor>

    </Controls>

    </MenuSection>

    </Menu>

    </FlyoutAnchor>

    </CommandUIDefinition>

    3465.print-_2D00_-Copy.JPG

    Thank you,

    Prashant,

  • Kumar Viju Profile Picture
    1,026 on at

    http://develop1.net/public/post/Add-Dynamic-Menu-to-Ribbon-Button.aspx

    Is there a new link for the above URL?

  • Kumar Viju Profile Picture
    1,026 on at

    develop1.net/.../Add-Dynamic-Menu-to-Ribbon-Button.aspx

    Is there a new Link for the URL you have shared as the existing one is not working!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans