Ribbonview size and setup

2 posts, 1 answers
  1. Jason
    Jason avatar
    10 posts
    Member since:
    May 2008

    Posted 05 Dec 2011 Link to this post


    We have been using RadRibbonBar and had everything working fine until we went to upgrade to the latest controls.  We ran into tons of issues and found that the RadRibbonView is the recommended way to go.

    After spending lots of time switching from the Bar to the View I ran my project and the RibbonView did not show.  I determined it was because I set the Height property.  Removing this property allowed the RibbonView to display, but I cannot get the same style as before.

    Attached is how our ribbon looks using the RadRibbonBar before upgrade.  How can I set properties in the RadRibbonView to acheive this same result? 

    Here is a sample code snippet that works for RadRibbonBar, but not RadRibbonView.  Note that with the Height property set on RadRibbonView the ribbon does not display.  Setting the height to "Auto" shows the ribbon.
    <telerikRibbon:RadRibbonView HelpButtonVisibility="Collapsed" x:Name="radRibbonBar1"
                             ApplicationName="Telerik Word" Title="Document1"
                                 Margin="0" Padding="0">
        <telerikRibbon:RadRibbonTab Header="Home" HeaderVisibility="Collapsed" Height="50" Padding="0" Margin="0" >
            <telerikRibbon:RadRibbonGroup Header="" DialogLauncherVisibility="Collapsed" >
                <telerikRibbon:RadRibbonButton Text="Edit"
                            Click="Button_Click" />
                <telerikRibbon:RadRibbonButton Text="Open"
                            Click="Button_Click" />
                <telerikRibbon:RadRibbonButton Text="Delete"
                            Click="Button_Click"  />
        <telerikRibbon:RadRibbonTab Header="View" HeaderVisibility="Collapsed" >

  2. Answer
    Petar Mladenov
    Petar Mladenov avatar
    2882 posts

    Posted 08 Dec 2011 Link to this post

    Hi Jason,

     The RadRibbonView's design follows strictly an MS Guidelines Document for developing a Ribbon control with the Office 2010 look and feel. A rule in this document states that the RibbonView must have fixed size of 91. So changing this height might lead various undesired issues. You are able to edit the default control template of the RibbonView and change this constant but there is no warranty this will be reliable. 

    Best wishes, 
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top