Handle client area in "Show below the ribbon"

2 posts, 0 answers
  1. Patricio
    Patricio avatar
    1 posts
    Member since:
    Aug 2008

    Posted 07 Aug 2008 Link to this post

    I need to handle the client area when the user pick in the "Show below the ribbon", because the control expand and I don't take control over the new area. and the Quick Access Menu it's not accesible then.

    Some idea for this:
    | Rad Ribboin Tooolbar
    | Client Area

    Thanks !
  2. Peter
    Peter avatar
    1148 posts

    Posted 08 Aug 2008 Link to this post

    Hi Patricio,

    Thank you for your interest in RadRibbonBar.

    You should use RadRibbonBar's QuickAccessToolbarBelowRibbon property that gets or sets if the quick access toolbar is below the ribbon.

    We do not support the capability to turn off "Show below the ribbon", because it is a requirement from the 2007 Microsoft® Office system user interface design guidelines. Here is a quote from the document: "Right-clicking anywhere on the Ribbon SHOULD provide the option to “Show Quick Access Toolbar Below the Ribbon.”

    Nevertheless, there is a workaround to to remove the "Show below the ribbon button" text:

    1) Subscribe to the Opening event of the DropDownButton

    public Form1() 
                RadElement quickAccesToolBar = this.radRibbonBar1.RibbonBarElement.QuickAccessToolBar; 
                RadToolStripOverFlowButtonElement overflowButton = 
                    (RadToolStripOverFlowButtonElement) quickAccesToolBar.Children[1].Children[1]; 
                overflowButton.DropDownOpening += new CancelEventHandler(overflowButton_DropDownOpening); 

    2) Collapse the button
    private void overflowButton_DropDownOpening(object sender, CancelEventArgs e) 
                RadToolStripOverFlowButtonElement overflowButton = (RadToolStripOverFlowButtonElement) sender; 
                overflowButton.Items[overflowButton.Items.Count - 2].Visibility = ElementVisibility.Collapsed; 

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top