New to Kendo UI for Angular? Start a free 30-day trial

ColumnMenuSettings

The settings of the column menu in the Grid component.

{% meta height:300 %}


@Component({
    selector: 'my-app',
    template: `
      <kendo-grid [data]="data" [filterable]="true" [columnMenu]="{ lock: true, filter: false }">
         <kendo-grid-column field="Field1" [width]="100"></kendo-grid-column>
         <kendo-grid-column field="Field2" [width]="100"></kendo-grid-column>
      </kendo-grid>
    `
})

class AppComponent {
  public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }];
}

{% endmeta %}

columnChooser?

boolean | ExpandableColumnMenuItem

(default: true) Specifies if the item for column selection will be displayed in the column menu.

filter?

boolean | ExpandableColumnMenuItem

(default: true) Specifies if the columns can be filtered in the column menu. If filtering is enabled, defaults to true.

lock?

boolean

(default: false) Specifies if the columns can be locked and unlocked from the column menu. This option follows the prerequisites and limitations of the locked columns.

setColumnPosition?

boolean | ExpandableColumnMenuItem

(default: false) Specifies whether the stick and lock items will be displayed in an expandable sub-menu or as standalone root-level menu items.

sort?

boolean

(default: true) Specifies if the columns can be sorted in the column menu. If sorting is enabled, defaults to true.

stick?

boolean

(default: false) Specifies if the columns can be stuck and unstuck from the column menu. This option follows the prerequisites and limitations of the sticky columns.