New to Kendo UI for Angular? Start a free 30-day trial
ColumnMenuAutoSizeColumnComponent
Represents the Kendo UI for Angular TreeList column-menu item for resizing a specified column to fit the header or cell content without wrapping. See example.
Place this component inside a ColumnMenuTemplate
directive to enable the feature.
Set the ColumnMenuService
and column
inputs using the values passed by the template.
html
<kendo-treelist [columnMenu]="true" ...>
<ng-template kendoTreeListColumnMenuTemplate let-service="service" let-column="column">
<kendo-treelist-columnmenu-autosize-column [column]="column" [service]="service">
</kendo-treelist-columnmenu-autosize-column>
</ng-template>
</kendo-treelist>
Selector
kendo-treelist-columnmenu-autosize-column
Inputs
Name | Type | Default | Description |
---|---|---|---|
column |
|
The TreeList column instance to resize with the auto size column option. | |
service |
|
Represents the |
Methods
autoSizeColumn |
---|
Resizes the specified column to the minimum possible width so that it fits the widest header or cell content without wrapping. |