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

RadRibbonBar problems with Expanded property

2 Answers 175 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Manuel Walocha
Top achievements
Rank 1
Manuel Walocha asked on 21 Jul 2010, 12:51 PM
Hi,

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

Thanks

2 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 26 Jul 2010, 05:15 PM
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?

Regards,
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
0
Manuel Walocha
Top achievements
Rank 1
answered on 27 Jul 2010, 03:05 PM
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.

Thanks
Tags
RibbonBar
Asked by
Manuel Walocha
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Manuel Walocha
Top achievements
Rank 1
Share this question
or