New to Telerik UI for ASP.NET MVC? Download free 30-day trial

GridContextMenuBuilder

Methods

Body(System.Action)

Parameters

configurator - System.Action<GridContextMenuCommandFactory>

Groups(System.Action)

Parameters

configurator - System.Action<GridContextMenuCommandFactory>

Head(System.Action)

Parameters

configurator - System.Action<GridContextMenuCommandFactory>

Events(System.Action)

Sets the event configuration of the grid context menu.

Parameters

configurator - System.Action<GridContextMenuEventBuilder>

The lambda which configures the events

Example


            @(Html.Kendo().Grid<Product>()
                .Name("grid")
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                        .Ajax()
                        .Read(read => read.Action("Products_Read", "Home"))
                )
                .CcontextMenu(menu => menu
                    .Events(events => events.Open("open"))
                    )
            )
            <script>
            function open(e) {
                // handle the dataBound event
            }
            </script>

In this article
Not finding the help you need?