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

GridColumnMenuColumnsSettingsBuilder

Methods

Sort(System.String)

The sort order which will be applied over the columns list. By default, the columns menu items are in the same order as the columns in the grid.The supported values are: "asc" (ascending order) or "desc" (descending order).

Parameters

value - System.String

The sort order value.

Example


             @(Html.Kendo().Grid(Model)
                        .Name("Grid")
                        .ColumnMenu(cm => cm.Columns(col => col.Sort("desc")))
            )

Groups(System.Action)

The user defined groups of the columns visibility list.

Parameters

configurator - System.Action<GridColumnMenuColumnsSettingsGroupFactory>

The configurator for the groups setting.

Example


             @(Html.Kendo().Grid(Model)
                        .Name("Grid")
                        .ColumnMenu(cm => cm.Columns(col => col.Groups(gr => gr.Add().Title("group1"))))
            )

In this article
Not finding the help you need?