Minimal Column Width

2 posts, 1 answers
  1. Andriy
    Andriy avatar
    33 posts
    Member since:
    Feb 2018

    Posted 05 Sep 2019 Link to this post

    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. Answer
    Marin Bratanov
    Admin
    Marin Bratanov avatar
    5701 posts

    Posted 05 Sep 2019 Link to this post

    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
Back to Top