RadRibbonBar problems with Expanded property

3 posts, 0 answers
  1. Manuel Walocha
    Manuel Walocha avatar
    2 posts
    Member since:
    Aug 2009

    Posted 21 Jul 2010 Link to this post


    im using the RadRibbonForm and try to collapse the RibbonBar by setting the property "Expanded" to false.

    This call throws an exception: System.NullReferenceException in RadRibbonBarElement.DoExpandCollapse()

    I try to change this property after "InitializeComponent()" and in several different Events.
    When i apply this change in the "RadRibbonForm _Shown"-Event the "RibbonBar" collapses, but the error is also thrown.

    Im using Telerik-Version Q1 2010

  2. Deyan
    Deyan avatar
    2147 posts

    Posted 26 Jul 2010 Link to this post

    Hello Manuel,

    Thank you for contacting us.

    We were not able to reproduce this exception in a standard RadRibbonBar scenario.

    Please note that if you do not have any tabs in the RadRibbonBar setting the Expanded property will cause an error since setting this property is valid only when there is at least one tab in the control. The semantics of this property imply that the content of the selected tab is placed on a popup and the control's height is reduced. The popup is shown each time you click on the corresponding tab without taking place on the form on which the Ribbon Bar resides. As of Q2 2010 we have replaced the null-reference exception with an InvalidOperationException.

    Could you please give us some further details on your scenario so that we can find the best way to help you?

    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. Manuel Walocha
    Manuel Walocha avatar
    2 posts
    Member since:
    Aug 2009

    Posted 27 Jul 2010 Link to this post

    Hello Deyan,

    the information using a RadRibbonBar without any Tab was the answer.
    Now i added a "Dummy"-Tab and set its visibility to hidden, after this i can change the "Expanded"-property without any problems.

Back to Top