This is a migrated thread and some comments may be shown as answers.
Minimal Column Width
1 Answer 118 Views
This is a migrated thread and some comments may be shown as answers.
Andriy
Top achievements
Rank 1
Andriy asked on 05 Sep 2019, 12:53 PM
Now I use constant or percentage values for column width settings. But for some columns I need constant width value after some threshold grid width. When my grid is set narrow, I need some columns set be constand width.
May be will be usefull maximum column value also.

1 Answer, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 05 Sep 2019, 01:55 PM

Hi Andriy,

The problem with such a feature is that min-width and max-width are undefined for tables with fixed layout. You can read more about this in various places, like this thread: https://www.sitepoint.com/community/t/fixed-layout-table-ignores-min-width-of-cells/110597/7. Perhaps min/max width could be implemented when column resizing gets implemented and they could take effect for the user actions, but I am not sure what can be done for CSS rules. You could try using the auto table-layout and to add min-width and max-width to the td and th elements in the grid, but I am not sure whether that might not break something.

Nevertheless, I would encourage you to post a feature request for such a feature in the feedback portal through the "Request a Feature" button. Just make sure to select the "make public" checkbox at the final step. This will let you explain your goals, requirements, even perhaps add a sample of what API and functionality you would expect it exposes. You can then Vote for it and Follow it to get updates on status changes. If it gets good traction with the community, we will consider its implementation.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
Tags
Grid
Asked by
Andriy
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or