Kendo-grid resize column will reset the grid, reverting to original values. How do I make resized widths stay set?

0 Answers 202 Views
Grid
Clint
Top achievements
Rank 1
Iron
Iron
Iron
Clint asked on 22 Feb 2024, 04:19 PM | edited on 22 Feb 2024, 06:59 PM

AngularJS version 1.5.8.
Kendo UI version 2016.3.914+Official

I have a kendo grid with the resizeable property set to true. However, when I display the grid and then use my cursor to resize the grid, it appears the grid rebinds the data and reverts all columns to their original size.

How do I make resized widths stay set?
Are there any properties I should look at to help with this issue?

Clint
Top achievements
Rank 1
Iron
Iron
Iron
commented on 22 Feb 2024, 06:09 PM

I did find the columnResize event, that I can use to fire once a column is resized on the UI. When I break point and look at the incoming "e" parameter I see this:

It looks like the new with value is recognised. However, once you let this event run, the grid rebinds the data and reverts back to the old width.

Is there a way to prevent this width from reverting to the old value?

Neli
Telerik team
commented on 27 Feb 2024, 01:28 PM

Hi Clint,

I tried to replicate the described issue in the Dojo linked here - https://dojo.telerik.com/@NeliK/IXiYUKuB

However, as you will see after resizing the column width persists. Could you please try to modify the example in order to replicate the described behavior and send it back for a review?

Regards,

Neli

Clint
Top achievements
Rank 1
Iron
Iron
Iron
commented on 27 Feb 2024, 02:45 PM

Thanks for you help on this issue. I think I found the issue with the column resize. It appears that the original programmer manually set up the column widths and applied them to the columns property of the grid options. So I had to use the columnResize event and update this manual list to update the widths of the columns.

Now I have a NEW problem.

When a column is resized the grid then appears to remove all the data within the gird itself and requery the data that was there, recalling the end point specified within the transport property of the grid options.

Is this normal behaviour of the the Kendo grid to requery data with a column resize?
If so, is there a way to turn this functionality off and just keep the data in memory?
Neli
Telerik team
commented on 01 Mar 2024, 09:24 AM

Hi Clint,

The described behavior is not expected. Could you please let me know if there is some custom implementation that is executed when a column is resized? You can check for columnResize event hanlder for example.

Regards,

Neli

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Clint
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or