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

Razor
 
             @(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

Razor
 
             @(Html.Kendo().Grid(Model)
                        .Name("Grid")
                        .ColumnMenu(cm => cm.Columns(col => col.Groups(gr => gr.Add().Title("group1"))))
            )
             
In this article
MethodsSort(System.String)Groups(System.Action)
Not finding the help you need?
Contact Support