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-treelist-columnmenu-autosize-all-columns
component. 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. |