Declined
Last Updated: 15 Sep 2022 12:25 by ADMIN
Guy
Created on: 08 Sep 2022 13:55
Category: Kendo UI for Angular
Type: Feature Request
0
I'd like to set a minimum width on grid columns

Hi there,

we'd like to raise a change request in relation to column widths on grids:
https://www.telerik.com/kendo-angular-ui/components/grid/columns/width/ 

Currently, we can either set a fixed width on a column, or not set a width at all and leave it dynamic. Our problem is, that we have some columns that would benefit from additional space if it is available (e.g. on a larger screen), yet really suffer if they do not receive enough space. 

When we give such a column a fixed size, we have to choose an amount that will still leave other columns enough space on smaller screens, and since it is fixed, is does not increase in size with larger screens. 

If we don't set a fixed width, (or give all columns a fixed width), the available space will be distributed evenly/proportionally among the columns. So here, the columns do benefit from extra space, but the problem is that on smaller screens, they also can become too small to display the content.

We would like to be able to set a minimum width on columns. We imagine the behavior to be as follows:

If there are some columns with a fixed width and some with a min. width, and

  • the available space is less than the sum of the fixed and min. widths -> a horizontal scrollbar is added
  • the available space is more than the sum of the fixed and min. widths -> the additional space is distributed among the columns with a min. width (evenly or proportionately, either option is fine)
1 comment
ADMIN
Martin
Posted on: 15 Sep 2022 12:25

Hi Guy,

Thank you for the logged feature request. 

As mentioned in the article, the Grid component consists of generic HTML table elements like, TR and TD, tbody, thread, etc. In these lines of words, the behavior of Grid column widths follows the same standards like a regular HTML table with a fixed layout.

Thus I am afraid that distributing the excessive width between specific columns (which have some width set) while having regular fixed columns width is not possible and the request needs to be Declined. I understand that this might be disappointing to some extent, but changing the Grid columns behavior in such a manner will cause discrepancies in how the HTML table is expected to behave when resizing.

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.