RadGridView - Resize Column doesn't work when horizontal scroll bar is visible

1 Answer 54 Views
GridView
Mark
Top achievements
Rank 2
Bronze
Iron
Veteran
Mark asked on 20 Sep 2023, 07:23 PM

When a user attempts to resize a column (yea, the columns are set to be resizeable) and the grid's horizontal scroll bar is visible, the column will not resize. We get the re-size icon, but nothing happens.  As soon as the scroll bars are gone, the columns will then resize as excepted.  

 

Anyone have a work around for this.  It's driving our customers crazy....

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 21 Sep 2023, 09:37 AM

Hi Mark,

To test your case, I have created a sample project and added 20 columns. The AllowColumnResize property is set to true. You can find the project attached to this reply. When you run the project you can observe that not all columns are visible. I am able to resize any of the columns. Check the following GIF file:

Can you check the attached project and share what settings I am missing from your set-up to reproduce this behavior?

Regards,
Dinko | Tech Support Engineer
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.

Mark
Top achievements
Rank 2
Bronze
Iron
Veteran
commented on 04 Oct 2023, 02:36 PM

I will have a sample project for you soon.
Dinko | Tech Support Engineer
Telerik team
commented on 09 Oct 2023, 08:03 AM

A sample project will be of great help. Take your time to prepare the sample project. This way I can debug this behavior and try to find a suitable solution. 
Mark
Top achievements
Rank 2
Bronze
Iron
Veteran
commented on 12 Oct 2023, 12:06 PM

Okay, I think I figured it out.  I am not sure all the combination of properties, but I know it has something to do with AutoSizeColumnsMode being set to FILL (before data is bound to grid) and the columns are set to a specific width (after data is bound to grid). Once I have it that way, the columns are not re-sizeable.   Attached is a sample project that allows you to toggle the AutoSizeColumnsMode property on the grid, where you can see, when set to FILL, the columns can't be resized, even with AllowColumnResize set to TRUE 

The settings on the grid are our default setup for our grids

NOTE: we are also experiencing cases where the Horizonal Scroll Bar will not show, even though it's setting is set to AutoHide. and the row extends past the grids bounds. I am working on finding a way to repo this and will create a new ticket for that was well.

 

 

Dinko | Tech Support Engineer
Telerik team
commented on 13 Oct 2023, 12:12 PM

The provided project is greatly appreciated. Indeed this behavior is a result of setting the Width/MinWidth properties of the columns. Setting the AutoSizeColumnsMode property to Fill will calculate equal sizes for each of the columns. They are expected to be set to such values that the available space in the grid table element is filled completely. Setting the MinWidth/Width to the columns will prevent the auto-fill calculations when the grid column size is changed. 

As the MinWidth and Width properties of the columns are set, there is no need to use the AutoSizeColumnsMode.Fill mode. Combining these properties will break the resizing logic. You can also observe that switching between Fill and Node mode does not change the column's size.

Tags
GridView
Asked by
Mark
Top achievements
Rank 2
Bronze
Iron
Veteran
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or