To reproduce: please run the attached sample project and follow the steps from the gif file. Workaround: close the popup before showing the message or the dialog: private void radButtonElement1_Click(object sender, EventArgs e) { if (!radRibbonBar1.Expanded) { this.radRibbonBar1.RibbonBarElement.Popup.ClosePopup(Telerik.WinControls.UI.RadPopupCloseReason.Mouse); } RadMessageBox.Show("Test"); }
Hello Dawood, I was not able to replicate the error with the latest version R1 2018 SP. Feel free to submit a support ticket providing additional information how to reproduce the problem. Meanwhile, checking whether the ribbon is expanded seems to be OK.
This workaround will throw "Object reference not set to an instance of an object" exception if the Ribbon is not collapsed. To make sure that it works for both expanded and collapsed state you should put a check on "Expanded" property. This works for me: private void radButtonElement1_Click(object sender, EventArgs e) { if(!radRibbonBar1.Expanded) { this.radRibbonBar1.RibbonBarElement.Popup.ClosePopup(Telerik.WinControls.UI.RadPopupCloseReason.Mouse); } RadMessageBox.Show("Test"); }