How to handle column resizing below container width

1 Answer 35 Views
Grid
Alex
Top achievements
Rank 1
Alex asked on 13 Nov 2024, 03:13 PM

Hello,

Is there a non hacky way to handle a column resizing to below the grid container's width? Basically, we want to cancel the resize event if the total width of the columns shrinks below the width. I came up with a hacky solution that sort of works, but I was wondering if there is a set way to do this?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 15 Nov 2024, 01:35 PM

Hello, Alex,

In KendoReact Grid, while there isn't a direct built-in feature to prevent column resizing from shrinking the grid container's width. The optimal suggestion I can offer you is to consider configuring the minResizableWidth prop of each column so that the sum of each columns cannot be less than the Grid one:

Regards,
Vessy
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid
Asked by
Alex
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or