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

Context menu block

2 Answers 52 Views
GridView
This is a migrated thread and some comments may be shown as answers.
shirley wang
Top achievements
Rank 1
shirley wang asked on 24 Jun 2010, 08:35 AM
Dear People,

I have a radGridView and a context menu for it. This GridView has auch rowDetail. What i want to achieve is block the context menu
on RowDetail so that when in right click on row detail the context menu do not appear. How can i do this?

Thank you.

Shirley

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 24 Jun 2010, 08:41 AM
Hello Shirley,

 You can use similar to this demo approach. For example if you want context menu only on cells you can use:

GridViewCell cell = menu.GetClickedElement<GridViewCell>();

and if this is null set menu.IsOpen = false;


Best wishes,
Vlad
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
0
shirley wang
Top achievements
Rank 1
answered on 24 Jun 2010, 10:49 AM
Thank you Vlad, it works.
Tags
GridView
Asked by
shirley wang
Top achievements
Rank 1
Answers by
Vlad
Telerik team
shirley wang
Top achievements
Rank 1
Share this question
or