This is a migrated thread and some comments may be shown as answers.

Adding items to the quick access toolbar overflow item

1 Answer 97 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Gabriele Svelto
Top achievements
Rank 1
Gabriele Svelto asked on 10 May 2010, 03:23 PM
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.

1 Answer, 1 is accepted

Sort by
0
Accepted
Deyan
Telerik team
answered on 13 May 2010, 11:42 AM
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.
Tags
RibbonBar
Asked by
Gabriele Svelto
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or