Context Menu on ClientSideDoubleClickEvent (MVC)

I'm attempting to add a context menu to my grid when a user double clicks (or even better - right clicks but I don't see a GridPropertiesModel property for this). I don't see any examples for handling a click event or for a context menu in an MVC grid. Could I get an example?
Thanks


1 Reply

KD Krishnaraj D Syncfusion Team November 9, 2010 07:16 AM UTC

Hi Eric,

Thanks for your interest in Syncfusion Products.

Currently, we don’t have built-in support for context menu in Mvc Grid. However your requirement can be achieved using our Mvc Menu control.
Please refer the below code snippets.
<%=Html.Menu("ContextMenuContent").ContextMenuTargetId("Grid_ID").Mode(MenuModel.ModeType.ContextMenu)%>



Note: The “ContextMenuTargetId” should be ID of the Grid.

For more details about Syncfusion ContextMenu, please refer our online documentation in the below link.

http://help.syncfusion.com/ug_84/User%20Interface/ASP.NET%20MVC/Tools/default.htm?turl=contextmenumode.htm


Please let us know if you have any queries.

Regards,
Krishnaraj D





Loader.
Up arrow icon