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

ColumnMenuSettings

The settings of the column menu in the Grid component.


@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' }];
}
NameTypeDefaultDescription

columnChooser?

boolean | ExpandableColumnMenuItem

true

Specifies if the item for column selection will be displayed in the column menu.

filter?

boolean | ExpandableColumnMenuItem

true

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

lock?

boolean

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

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

true

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

stick?

boolean

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.