Unplanned
Last Updated: 22 Feb 2018 14:58 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 28 Dec 2017 08:08
Category: RibbonBar
Type: Bug Report
1
FIX. RadRibbonBar - collapsed ribbon's popup is not displayed behind a shown dialog by clicking a RadButtonElement on the ribbon
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");
        }
2 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 22 Feb 2018 14:58
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. 
Dawood
Posted on: 28 Dec 2017 11:52
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");
        }