If the [maxResizableWidth] value is set on a column, then autosizing functions should not make the column wider than that (or narrower in the case of a minResizableWidth)
1 Answer, 1 is accepted
0
Simeon
Telerik team
answered on 09 Aug 2023, 03:18 PM
Hello Noah,
I can confirm this is the default behavior of the Grid. The maxResizableWidthproperty only takes effect when the user interacts with the UI of the component (manually resizing the column with the mouse pointer). Methods like autoFitColumns and the autoSizeAllColumns options have higher priority.
Please feel free to write back if more questions arise.
Is there a reasonable way to use the autosize functions and have them honor this setting?
Simeon
Telerik team
commented on 04 Sep 2023, 06:39 AM
Hi Noah,
I am not sure I fully understand the question. This is why I will give some general information about the discussed options above:
The autoSize built-in property of the Grid indicates whether the Grid columns will be resized during initialization so that they fit their headers and row content:
autoSizeAllColumnsis an option of the built-in columnMenuGrid property. When set to "true", it allows resizing all columns to the minimum possible width so that they fit the widest header or cell content without wrapping:
As minResizableWidth and maxResizableWidthare taken into consideration only on user interaction with the UI, the properties and methods stated above have higher priority by default.
If the provided information does not answer the question, please share more details about the exact specifics of the implementation, so I can assist further.