Adding items to the quick access toolbar overflow item

2 posts, 1 answers
  1. Gabriele Svelto
    Gabriele Svelto avatar
    6 posts
    Member since:
    Sep 2009

    Posted 10 May 2010 Link to this post

    I was looking for a way of adding a few custom items to the quick access toolbar overflow button. I tried adding items to the drop-down either in this way:

    class CustomRibbonBar : RadRibbonBar 
        public CustomRibbonBar() 
        { 
            // ... 
            this.RibbonBarElement.QuickAccessToolbar.OverflowButtonElement.Items.Add(new RadMenuItem("test")); 
            // ... 
        } 

    And in this way:

    class CustomRibbonBar : RadRibbonBar  
        public CustomRibbonBar()  
        {  
            // ...  
            this.RibbonBarElement.QuickAccessToolbar.OverflowButtonElement.DropDownMenu.Items.Add(new RadMenuItem("test"));  
            // ...  
        }  
    }  

    In both cases however it seems that my controls are ignored and the overflow button shows only the default items.

    Looking around the forum I found this thread:

    http://www.telerik.com/community/forums/winforms/ribbonbar/adding-items-to-quick-access-toolbar-overlow-menu.aspx#822537

    which mentioned that this functionality would be added in a future revision. Was this functionality effectively added? If so I am using the wrong way of adding items to that particular button? I am using Telerik version 2010.1.10.308 FYI.
  2. Answer
    Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 13 May 2010 Link to this post

    Hi Gabriele Svelto,

    Thanks for writing.

    This functionality is available as of Q1 2010 SP2. You should use the SetItemVisibility method of the RadQuickAccessToolbar to initially hide an item (which will put it in the overflow menu).

    I hope this helps.

    Best wishes,
    Deyan
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top