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

Prevent Collapsed Group Popup from Closing

2 Answers 119 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Geoffrey
Top achievements
Rank 1
Geoffrey asked on 04 May 2016, 10:21 AM

When the ribbon group is in collapsed mode and it contains a combo box, how can I prevent the group from closing when an item in the combo box is selected? It's causing some unwanted behavior due to other events attached to the combo box, which doesn't happen when the group is not collapsed.

2 Answers, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 09 May 2016, 06:11 AM
Hi Geoffrey,

In order to prevent the collapsing of the group when an item from the RadRibbonComboBox is selected you can subscribe to the SelectionChanged event of the RadRibbonComboBox and handle the event. This way the event will not bubble to his parent, which in your case is the ribbon group.
private void RadRibbonComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
    e.Handled = true;
}

Hope this information is useful.


Regards,
Dinko
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Geoffrey
Top achievements
Rank 1
answered on 09 May 2016, 07:36 AM

Hi,

 

I was hoping there would rather be a property on the ribbon as I have multiple combo boxes, checkboxes, etc, but this seems to have done the trick.

 

Thank you :)

Tags
RibbonView and RibbonWindow
Asked by
Geoffrey
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Geoffrey
Top achievements
Rank 1
Share this question
or