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

radcontextmenu keep force after close.

1 Answer 90 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Jingmeng
Top achievements
Rank 1
Jingmeng asked on 10 May 2011, 03:49 AM
hey, i facing a problem with RadDropDownButton, the dropdowncontext is RadContextMenu with only one radmenuitem, and this radmenuitem has two children, 
the problem i have is so far, once the mouse go over the RadContextMenu, and then put it on top of its children item, and instead of click it, i drop the mouse outside of this control and click, RadContextMenu will auto close, but when i click RadDropDownButton again, that RadContextMenu will get force, and i cant open the children radmenuitem..

here is the code

<Grid x:Name="LayoutRoot">
    <telerik:RadDropDownButton Name="radbtn" Width="200" Height="30">
        <telerik:RadDropDownButton.DropDownContent>
            <telerik:RadContextMenu >
                <telerik:RadMenuItem Header="Test" >
                    <telerik:RadMenuItem Header="Click1" />
                    <telerik:RadMenuItem Header="Click2" />
                </telerik:RadMenuItem>
            </telerik:RadContextMenu>
        </telerik:RadDropDownButton.DropDownContent>
    </telerik:RadDropDownButton>
</Grid>

cheers,

1 Answer, 1 is accepted

Sort by
0
Accepted
Kiril Stanoev
Telerik team
answered on 12 May 2011, 03:10 PM
Hi Jingmeng,

Unfortunately this scenario is not supported. I'd recommend you use the approach described bellow:

<telerik:RadButton Name="radbtn" Width="200" Height="30">
    <telerik:RadContextMenu.ContextMenu>
        <telerik:RadContextMenu EventName="Click" Placement="Bottom">
            <telerik:RadMenuItem Header="Test">
                <telerik:RadMenuItem Header="Click1" />
                <telerik:RadMenuItem Header="Click2" />
            </telerik:RadMenuItem>
        </telerik:RadContextMenu>
    </telerik:RadContextMenu.ContextMenu>
</telerik:RadButton>

Let me know how this works for you.

Regards,
Kiril Stanoev
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
Tags
Menu
Asked by
Jingmeng
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Share this question
or