I 'm new to crm 2011. I've found documentation on how to add a new button to the ribbon. And how to group the buttons. But i need a dropdown menu button in the ribbon. How can i do this? I didn't found any information about this.
Thanks!
I 'm new to crm 2011. I've found documentation on how to add a new button to the ribbon. And how to group the buttons. But i need a dropdown menu button in the ribbon. How can i do this? I didn't found any information about this.
Thanks!
This should get you started. If all you need is a static menu you can put the tag inside the Flyout Control and build the menu from there.
If you want to generate the menu Dynamically you can use this flyout control instead. Note the Populate attributes that were added. Then you have to build the menu through javascript.
I created two commands that access the javascript functions. DynamicMenu builds the menu and the Search is used to determine which button control was pressed. Note both of these pass the CommandProperties parameter this is important for the javascript.
Here are the javascript functions: