This is a migrated thread and some comments may be shown as answers.

Minimal Column Width

2 Answers 681 Views
Grid
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.

2 Answers, 1 is accepted

Sort by
-1
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
0
Leland
Top achievements
Rank 2
Iron
Iron
Iron
answered on 08 Apr 2024, 02:37 PM
There is now a MinResizableWidth property for the GridColumn component.
Tags
Grid
Asked by
Andriy
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or