columnMenu.autoSize Boolean
(default: false)
If set to true
the column menu would allow the user to fit one or all columns to the width of their content. This setting is available only when the tabbed
componentType is used.
Example - disable column selection
<div id="grid"></div>
<script>
$("#grid").kendoGrid({
columns: [
{ field: "name" },
{ field: "age" }
],
columnMenu: {
autoSize: true,
componentType: "tabbed"
},
sortable: true,
dataSource: [
{ name: "Jane Doe", age: 30 },
{ name: "John Doe", age: 33 }
]
});
</script>