how can i get a reference to a context menu created in xaml for a gridview like so.
i would like as the grid is created to add some default menu items but i need to get a reference to the xaml contentmenu to add the items.
thanks
dco
<
RadGridView
IsReadOnly
=
"True"
AutoGenerateColumns
=
"False"
x:Name
=
"gridDispatch"
>
<
telerik:RadContextMenu.ContextMenu
>
<
telerik:RadContextMenu
x:Name
=
"coco1"
>
<
telerik:RadContextMenu.Items
>
<
telerik:RadMenuItem
Header
=
"Copy"
>
<
telerik:RadMenuItem.Icon
>
<
Image
Source
=
"/Images/copy.png"
/>
</
telerik:RadMenuItem.Icon
>
</
telerik:RadMenuItem
>
</
telerik:RadContextMenu.Items
>
</
telerik:RadContextMenu
>
</
telerik:RadContextMenu.ContextMenu
>
<
telerik:RadGridView.Columns
>
</
telerik:RadGridView.Columns
>
</
RadGridView
>
i would like as the grid is created to add some default menu items but i need to get a reference to the xaml contentmenu to add the items.
thanks
dco