I am using the Ribbon and I want the user to be able to customize the QuickAccessToolbar at runtime. I haven't figured out a good way to do that for the user. My one solution was to add the tools that have ShowInCustomizer = true in a list that would be displayed in the context menu. However, that is not user friendly and the list is going to be quite long.
I tried showing the customizer at run-time and doing it that way, but I cannot drop a tool on the QuickAccessToolbar (or any other part of the ribbon for that matter).
Notable Properties:
Also I should specify that I'm using the UltraToolbarsManagerWorkspace from within the CAB Extensibility Kit. I don't know if that makes a difference since it just wraps the main toolbars manager, but I'm mentioning it just in case.
I won't be happy, but if I have to I will implement a unique customization control. However, I would really just like to allow the drag-and-drop capability or something equally useful within the existing toolset.
Hi,
I am not sure I understand you, if you want you can upload a small sample illustrating your issue. For now I can suggest you to check in the Samples on your machine provided with your installation: Windows Forms Feature Browser - > Ribbon at Run Time - the InitializeQuickAccessToolbar part(I am not sure if it is the same with the CAB extensibility kit)
Let me know if this is helpful for you.
Regards,
Stefaniya
Developer Support Engineer
Infragistics, Inc
http://es.infragistics.com/support
That is a helpful example, and it helped me find what I was missing. The option on the default ribbon context menu lets you Add to Quick Access Toolbar. This is essentially what I need.
The problem is that with Smart Client applications you do not know what your tools will be at design time, because your ribbon is setup as an extension site; or as in my case different extension sites -- for example I can add a new tab or add to one of a few different groups within the main tab. Not knowing what tools you have makes it difficult to populate the context menu on the Quick Access Toolbar's context menu. To make things worse there is no event for the toolbars manager for when a tool is added or in SCSF when an extension site has been added to.
Having drag and drop support for the tools would be a nice enhancement. I understand it would not be available in the Office compatibility mode.
The event reflecting the changes in the quickAccesToolbarsManager is QuickAccessToolbarModified and the modification type is described by e.QuickAccessToolbarChangeType.
I need to check that based on your scenario with CAB, if you attach a sample of what you have done up to now (if you want I can open a case where you can upload it) will give me more clues what is going on. And I will be glad to research further.
The event that would be needed would be to detect the ribbon being "added to"; or more specifically tools in the underlying toolbars manager. I assume the QuickAccessToolbarModified event only occurs when a tool is added to the toolbar and not to the tools of the toolbars manager.
The QuickAccessToolbar would only be customized by the user. Ideally, that would be a drag and drop operation. However, the default context menu on the ribbon will definitely suffice. Given that, I don't really need to populate the context menu on the QuickAccessToolbar. Populating that context menu was the problem since my tools would be added to the toolbars manager as the modules are loaded.
I hope that clears things up. To summarize the context menu on the ribbon will suffice for the feature to allow users to customize the QuickAccessToolbar at runtime.
I have created the following support ticket for you: CAS-48845-P91P5Y. Please send me more details how you want to implement the customization of the QuickAccessToolbar or if it possible to send a sample, so I can research this further.
I like how it works more now as I've worked with it; and it is pretty consistent to the Windows/Office implementation of the ribbon. Having the option to add the tool to the QuickAccessToolbar from the ribbon from the context menu is sufficient for my requirements.
However, it would be nice if there was an event that captured a tool being added to the underlying UltraToolbarsManager Tools collection, because then I could choose to add individual tools to the QuickAccessToolbar's context menu.
I am glad you resolved your issue. If you want you may submit a feature request for this event on the link below : http://devcenter.infragistics.com/protected/requestfeature.aspx