How to enable maxresizablewidth like minresizablewidth in kendo grid

1 Answer 552 Views
Grid
Anjireddy
Top achievements
Rank 1
Anjireddy asked on 02 Jan 2022, 11:18 AM | edited on 05 Jan 2022, 02:51 AM

I have to restrict the resize of column after some width like minresizablewidth, is there any solution around.

When i resize the column of a grid, I do not want to see the right side of the grid fall off the screen.

 

I want to stop the resize of the description column when grid reaches the full width.

1 Answer, 1 is accepted

Sort by
1
Konstantin Dikov
Telerik team
answered on 04 Jan 2022, 11:57 AM

Hello Anjireddy,

Currently the Grid column has only "minResizableWidth" property for limiting the minimum width. For introducing a "maxResizableWidth" you can log a feature request in our public portal, where other developers can vote for that feature:

Another option would be to handle the "onColumnResize" event of the Grid and limit the columns width to the size that you want. I have prepared a simple example demonstrating this approach:

 

Best Regards,
Konstantin Dikov
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.

Anjireddy
Top achievements
Rank 1
commented on 05 Jan 2022, 03:04 AM | edited

Hi Dikov, Thanks for the suggestion.

In the above solution, column resizing is not stopping while dragging and resetting the width after dragging completion not like minResizableWidth.

I have edited my question and written the exact problem,can you please suggest me the possible solution, otherwise i will use above solution.

Konstantin Dikov
Telerik team
commented on 05 Jan 2022, 09:10 AM

Hello Anjireddy,

I have to say that I have tried different solutions before sending the one in my previous post, but the ones that I have tried to limit the max width in real-time had inconsistent behavior that I was unable to resolve with the current implementation of the resizing functionality. With that in mind, the previously suggested solutions seems to be the only available option until a maxResizableWidth is implemented in the built-in resizing functionality. 

Tags
Grid
Asked by
Anjireddy
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or