Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
235
Context Menu in XamGrid
posted

Hi,

 Is there any direct way of creating context menu on Silverlight XamGrid, one way i found out is by extending as shown on

http://es.infragistics.com/community/blogs/devin_rader/archive/2011/04/15/extending-xamgrid-with-a-right-click-context-menu.aspx

 

But apart from this is there any other way of achieving this, without extending.

 

-Abhi

Parents
No Data
Reply
  • 17475
    Offline posted

    Hello Abhijeet, 

    I have been looking into your post and I am not completely sure what you mean by “direct way of creating context menu”. If you want just to add context menu and add event hadlers for its items, you could use the ContextMenuService to add the menu items and handle there click events.

    <ig:ContextMenuService.Manager>

                    <ig:ContextMenuManager ModifierKeys="None">

                        <ig:ContextMenuManager.ContextMenu>

                            <ig:XamContextMenu>

                                <ig:XamMenuItem Header="Item 1" Click="XamMenuItem_Click"/>

                                <ig:XamMenuItem Header="Item 2" Click="XamMenuItem_Click_1"/>

                                <ig:XamMenuItem Header="Item 3" Click="XamMenuItem_Click_2"/>

                            </ig:XamContextMenu>

                        </ig:ContextMenuManager.ContextMenu>

                    </ig:ContextMenuManager>

                </ig:ContextMenuService.Manager>

    Please let me know if this helps you or provide me some more details of what you are trying to achieve. Thank you.

Children