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

[Solved] contextMenu for grid

3 Answers 87 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Todd Millett
Top achievements
Rank 1
Todd Millett asked on 18 Jan 2011, 10:28 AM
Hi, 
     Is there any way I can attach contextmenu in Grid at the following levels together : 
                - Grid Level - some functions which are common to the grid
                - Item Level - some functions which are item(row) specific
                - Header (Column) Level - some functions which are column (specific)

      Also if you can share any samples regarding the same.I want to have all the above three types of context menu in a single grid.

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 18 Jan 2011, 10:51 AM
Hi Todd Millett,

You may take a look at this forum thread for a reference.
 

Greetings,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Todd Millett
Top achievements
Rank 1
answered on 18 Jan 2011, 10:57 AM
I was able to find the samples for row and header level context menu. Does it also enable a grid level context menu along with header and grid level context menus?
0
Maya
Telerik team
answered on 19 Jan 2011, 11:00 AM
Hi Todd Millett,

You may handle the Opened event of the RadContextMenu and define which RadMenuItem-s should be enabled/disabled or visible/collapsed depending on the functionality you want to implement and the clicked element (You may get it by the GetClickedElement method of the RadContextMenu).  
You may refer to the sample project in the above-mentioned forum thread.

Regards,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Todd Millett
Top achievements
Rank 1
Answers by
Maya
Telerik team
Todd Millett
Top achievements
Rank 1
Share this question
or