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

ColumnMenuAutoSizeAllColumnsComponent

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.

The component can be placed inside a ColumnMenuTemplate directive. To register the component as a known column menu item, set the ColumnMenuService that is passed by the template to the service input of the kendo-grid-columnmenu-autosize-all-columns component. See example.

<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>

Selector

kendo-grid-columnmenu-autosize-all-columns

Inputs

NameTypeDefaultDescription

service

ColumnMenuService

Represents the ColumnMenuService class. Requires a mandatory input.

Methods

autoSizeAllColumns

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

In this article

Not finding the help you need?