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

Represents the column-menu item for resizing all columns to the minimum possible width so that they fit the widest header or cell content without wrapping. See example.

Place this component inside a ColumnMenuTemplate directive. To register it as a column menu item, set the ColumnMenuService passed by the template to the service input of the kendo-grid-columnmenu-autosize-all-columns component. See example.

Definition

Package:@progress/kendo-angular-grid

Selector:kendo-grid-columnmenu-autosize-all-columns

Syntax:

html
<kendo-grid [columnMenu]="true" ...>
  <ng-template kendoGridColumnMenuTemplate let-service="service">
    <kendo-grid-columnmenu-autosize-all-columns [service]="service">
    </kendo-grid-columnmenu-autosize-all-columns>
  </ng-template>
</kendo-grid>

Inputs

Represents the ColumnMenuService class. This input is required.

Methods

Resizes all columns to the minimum possible width so that they fit the widest header or cell content without wrapping.