We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Prevent control from being added to QuickAccessToolbar

Thread ID:





76613 Sep 16,2008 05:42 PM UTC Feb 10,2009 07:22 AM UTC WinForms 5
Tags: Tools
Patrick Hampton
Asked On September 16, 2008 05:42 PM UTC


Is there a way to prevent an control on the ribbon from being added to the QuickAccessToolbar? We currently have a combo box on the Ribbon and if a user addes that control to the QuickAccessToolbar it does not stay in sync with the source combo box.


Fathima Shalini P [Syncfusion]
Replied On September 17, 2008 07:27 AM UTC

Hi Patrick,

Thank you for your interest in Syncfusion Products .

It is possible to prevent a ToolStripItem to be added to the QuickAccessToolBar using the QuickItems_BeforeAddItem event. Please refer to the following code snippets and the sample that illustrates this:

void QuickItems_BeforeAddItem(object obj, RibbonItemEventArgs args)
if (args.Item.Text == this.toolStripEx1.Items[2].Text)
args.Cancel = true;


Please let me know if any concerns.


Patrick Hampton
Replied On September 17, 2008 03:42 PM UTC


Thanks for the response. We will give this a try, but this is not an ideal solution because users will still see the item in the QAT menu. Is there a way to prevent the item from showing up in the menu too?


Hemaladha K [Syncfusion]
Replied On September 18, 2008 06:44 AM UTC

Hi Patrick,

Thank you for the update.

In the present we don't have built in support to prevent or disallow the item in the Customize Quick Access Toolbar dialog. We are planning to include the support for " Customize the Quick Access Toolbar Menu items " for RibbonControl Adv in the upcoming release (Volume 4). This will be available by October 1st week.

Please let me know if any concerns.


Ricardo Jose Marcoviche
Replied On January 19, 2009 01:51 PM UTC


I would like to know if this feature is available. If so, how to use it?


Administrator [Syncfusion]
Replied On February 10, 2009 07:22 AM UTC

Hi Marcoviche,

Sorry for the delayed response.

To prevent the item from showing up in Customize Quick Access Toolbar contextmenu

We are glad to inform that this feature is available in our latest Essential Studio 2009 Volume 1 final release.

Syncfusion Essential Studio 2009 Volume 1 final release is available for download.

Download link:

http://www.syncfusion.com/downloads/redirect.aspx?version= [242MB]

Unlock key:

If your Essential Studio license is current, you will be able to obtain the key to install this version from your account in DirectTrac. Otherwise, please contact your Syncfusion Sales Representative or e-mail salessupport@syncfusion.com.

This release contains several new features in addition to this fix .You can refer the new features in our website from the below provided link.


The following code snippet is used to prevent the item from showing up in the contextmenu .


this.ribbonControlAdv1.BeforeContextMenuOpen += new RibbonControlAdv.OnRightClick(ribbonControlAdv1_BeforeContextMenuOpen);

void ribbonControlAdv1_BeforeContextMenuOpen(object sender, ContextMenuEventArgs e)
e.ContextMenuItems[0].Visible = false;
e.ContextMenuItems[1].Visible = false;
e.ContextMenuItems[2].Visible = false;

Please let me know if this helps you.

Thank you for using Syncfusion products.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon