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' }];
}
Name | Type | Default | Description |
---|---|---|---|
columnChooser? |
|
| Specifies if the item for column selection will be displayed in the column menu. |
filter? |
|
| Specifies if the columns can be filtered in the column menu.
If filtering is enabled, defaults to |
lock? |
|
| 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? |
|
| Specifies whether the stick and lock items will be displayed in an expandable sub-menu or as standalone root-level menu items. |
sort? |
|
| Specifies if the columns can be sorted in the column menu.
If sorting is enabled, defaults to |
stick? |
|
| Specifies if the columns can be stuck and unstuck from the column menu. This option follows the prerequisites and limitations of the sticky columns. |