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

Problem with HeaderContextMenu and existing ones

2 Answers 83 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 03 Apr 2012, 03:14 PM
Hello,
I've developed a quite huge WPF application, with RadGridview's context menu representing the operation a user can do on a certain entity, now I've been asked to add the feature of allowing to show/remove columns for user personalization... I've tried on a mockup project the demo code on Telerik's demo -> RadGridView -> Header Context Menu ... this works fine if I've got a single context menu, if I've defined my own (the application has around 60 different context menu) the headermenu isn't shown... what can I do to have both living on my gridview?
I've tried following the code at 
http://www.telerik.com/help/silverlight/radcontextmenu-how-to-use-radcontextmenu-with-radgridview.html 

but it doesn't work fine with the demo implementation...any suggestion?
Thanks
Paolo

2 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 03 Apr 2012, 04:21 PM
Hi Paolo,

Please refer to this forum thread for a reference. 

Regards,
Maya
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Michele
Top achievements
Rank 2
answered on 03 Apr 2012, 04:28 PM
Hello Maya,
I had just seen that example...it sounds quite good but what I need is to have that piece of code

 

<!--<telerik:RadContextMenu.ContextMenu>

<telerik:RadContextMenu Opened="RadContextMenu_Opened"

ItemClick="RadContextMenu_ItemClick">

<telerik:RadContextMenu.Items>

<telerik:RadMenuItem Header="Add" />

<telerik:RadMenuItem Header="Edit" />

<telerik:RadMenuItem Header="Delete" />

</telerik:RadContextMenu.Items>

</telerik:RadContextMenu>

</telerik:RadContextMenu.ContextMenu>-->


still in the xaml,
I can't duplicate the code for 60 view and porting everything in the cs... I need something to use an hybrid approach.... continue using the contextmenu I've and extending it for the headermenu
Thank
Tags
GridView
Asked by
Michele
Top achievements
Rank 2
Answers by
Maya
Telerik team
Michele
Top achievements
Rank 2
Share this question
or