Approved
Last Updated: 17 Jan 2019 08:38 by VaL
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:
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
2 comments
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.