New to Kendo UI for jQuery? Download free 30-day trial

Column Menu

The Grid provides a built-in option for triggering column operations through a menu.

To enable the column menu implementation, set columnMenu:true. As a result, the column headers of the Grid render a column menu, which allows the user to sort, filter, or change the visibility of a column. The column menu also detects when a specific column operation is disabled through the column definition and excludes the corresponding UI from its rendering. For a runnable example, refer to the demo on implementing a column menu in the Grid.

When the columnMenu configuration is set to true, the Grid fires the columnMenuInit and columnMenuOpen events instead of filterMenuInit and filterMenuOpen.

Further information about the available columnMenu configuration properties can be obtained from this API article.

Sort

By default, the Grid column titles in the child column menu are not sorted. They have the same order as the columns in the Grid. To sort the column titles in the child menu, use the columns.sort configuration with asc or desc as the value..

    columnMenu: {
        columns: {
            sort: "asc"
        }
    }

Group

The columnMenu configuration setting accepts a columns.groups array that enables grouping of the columns in the menu. The array should contain objects with a title property which will be the title of the columns in that group and a columns array with the model fields that are part of the group. The menu will automatically use the titles from the grid columns for the columns options if they are defined.

    columnMenu: {
        columns: {
          groups: [
            { title: "Personal Information", columns: ["age", "firstName", "lastName"] },
            { title: "Address", columns: ["streetName", "streetNumber", "city", "postalCode"] }
          ]
        }
    }

Column Menu Types

As of R1 2021 version of the Kendo UI suite, the Grid component introduces the modern render mode that aims to deliver a fresh look and feel. It aims to enhance the existing rendering and deliver a fresh and modern look and feel.

By default, the column menu of the Grid is initialized in the classic render mode. To set it to modern, configure the options of the component as follows:

    $("#grid").kendoGrid({
        columnMenu:{
            componentType:"modern"
        }
    });

Disabling Column Menu for Specific Columns

As of R3 2022, the Kendo UI Grid enables the developer to disable the columnMenu for specific columns.

To take advantage of this feature, use the columns.columnMenu property.

KB Articles on Column Menu

See Also

In this article