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

RadRibbonDropDownButton's dropdown not closes

1 Answer 28 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
deepak
Top achievements
Rank 1
deepak asked on 23 Jun 2012, 04:02 AM
Hi all
As i hover on item1 and the click outside the dropdownbutton, dropdownbutton does not closes. below is the code to reproduce it.
<telerik:RadRibbonDropDownButton Grid.Row="1">
            <telerik:RadRibbonDropDownButton.DropDownContent>
                <telerik:RadContextMenu>
            <telerik:RadMenuItem Header="Item1">
            <telerik:RadMenuItem Header="Item1.1" >
                
                </telerik:RadMenuItem>
            </telerik:RadMenuItem>
            </telerik:RadContextMenu>
            </telerik:RadRibbonDropDownButton.DropDownContent>
            </telerik:RadRibbonDropDownButton>

Thanks
Deepak

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 27 Jun 2012, 12:13 PM
Hello Deepak,

If you want to create a menu button and use it to display ContextMenu options, then it is best to use the approach described  here. This would mean that in the RadRibbonView, you can define the following menu button:
<telerik:RadRibbonToggleButton IsChecked="{Binding IsOpen, ElementName=radContextMenu, Mode=TwoWay}">
    <telerik:RadContextMenu.ContextMenu>
        <telerik:RadContextMenu x:Name="radContextMenu" Placement="Bottom">
            <telerik:RadMenuItem Header="Item1">
                <telerik:RadMenuItem Header="Item1.1">
 
                </telerik:RadMenuItem>
            </telerik:RadMenuItem>
        </telerik:RadContextMenu>
    </telerik:RadContextMenu.ContextMenu>
</telerik:RadRibbonToggleButton>

Give this a try and let us know if it helps or if we can further assist you.

All the best,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RibbonView and RibbonWindow
Asked by
deepak
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or