New to Kendo UI for Angular? Start a free 30-day trial
ColumnMenuAutoSizeAllColumnsComponent
Represents the Kendo UI TreeList column-menu item for resizing all columns to fit the widest header or cell content without wrapping. See example.
Place this component inside a ColumnMenuTemplate directive to enable the feature.
Register the component as a known column menu item by setting the ColumnMenuService to the service input. See example.
html
<kendo-treelist [columnMenu]="true" ...>
<ng-template kendoTreeListColumnMenuTemplate let-service="service">
<kendo-treelist-columnmenu-autosize-all-columns [service]="service">
</kendo-treelist-columnmenu-autosize-all-columns>
</ng-template>
</kendo-treelist>
Selector
kendo-treelist-columnmenu-autosize-all-columns
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
service |
|
Represents the |
Methods
autoSizeAllColumns |
|---|
|
Resizes all columns to the minimum possible width so that they fit the widest header or cell content without wrapping. |