Completed
Last Updated: 14 Feb 2019 16:42 by ADMIN
VaL
Created on: 04 Jan 2019 10:45
Category: VirtualGrid
Type: Bug Report
0
FIX. RadVirtualGrid - best-fitting a column by double click between the column headers breaks the VirtualGridAutoSizeColumnsMode.Fill

When you setup a hierarchical RadVirtualGrid and set the UseScrollbarsInHierarchy property to false and use VirtualGridAutoSizeColumnsMode.Fill for the child template, you expect that the column's width is calculated according to the total width of the respective template. Hence, if you shrink or enlarge the grid, the columns will shrink/enlarge respectively. However, if you double click the resize cursor between the column headers you will notice that the best-fit action is performed over the column and its width is adjusted. However, the VirtualGridAutoSizeColumnsMode.Fill setting is not respected and you either can't see all the columns, or you obtain some empty space if the column doesn't need much space. 

Attached Files:
5 comments
Dimitar
Posted on: 14 Feb 2019 16:41
Hello,

A fix will be available in Telerik UI for WinForms version R1 2019 SP1.

Regards,
Dimitar
ADMIN
Dess | Tech Support Engineer, Sr.
Posted on: 24 Jan 2019 13:59
Hello, Valerio,      

Indeed, the suggested workaround will slow down the columns' resizing. An alternative approach that I can suggest is to force refreshing only after releasing the mouse. Please refer to the following code snippet:

private void radVirtualGrid1_MouseUp(object sender, MouseEventArgs e)
{
    this.radVirtualGrid1.Width += 1;
}

Should you have further questions please let me know.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
VaL
Posted on: 22 Jan 2019 15:23

Hello Dess, this fix slow down the manual resize of columns with mouse drag.

We can't use it..

We are waiting for another solutione, thank you

VaL
Posted on: 17 Jan 2019 08:38

Hello Dess, thank you.

This fix solved the problem.

Regards.

ADMIN
Dess | Tech Support Engineer, Sr.
Posted on: 04 Jan 2019 11:00
Hello, Valerio,

Thank you for reporting this issue. I have also updated your Telerik points.

Currently, the possible solution that I can suggest in order to adjust the width of the columns properly is to handle the ColumnWidthChanged event as follows: 

private void radVirtualGrid1_ColumnWidthChanged(object sender, Telerik.WinControls.UI.VirtualGridColumnEventArgs e)
{
    this.radVirtualGrid1.Width += 1;
}

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.