Completed
Last Updated: 23 Feb 2016 07:34 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 18 Jan 2016 15:57
Category: GridView
Type: Bug Report
1
FIX. RadGridView - vertical scrollbar in the group panel is not visible when shrinking the grid
Please refer to the attached gif file.

Workaround: specify the MinimumSize property of the grid and its parent container to have a greater width than the DesiredSize of the group panel.
3 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 10 Feb 2016 12:16
The attached gif file illustrates the behavior on my end.
Attached Files:
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 10 Feb 2016 12:15
Hello Martin,

Thank you for writing.

You can find below a sample code snippet demonstrating how to limit the form's size considering the group panel's width:

 
public Form1()
{
    InitializeComponent(); 
    this.SizeChanged += Form1_SizeChanged;
}

private void Form1_SizeChanged(object sender, EventArgs e)
{
    if (minimumSize != Size.Empty)
    {
        this.SizeChanged -= Form1_SizeChanged;
        this.Size = minimumSize;
        this.SizeChanged += Form1_SizeChanged;
    }
}

Size minimumSize = Size.Empty;

private void HScrollBar_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
    if (e.PropertyName == "Visibility")
    {
        RadScrollBarElement scrollBar = sender as RadScrollBarElement;
        if (scrollBar != null && scrollBar.Visibility == Telerik.WinControls.ElementVisibility.Visible)
        {
            minimumSize = this.Size;
        }
        else
        {
            minimumSize = Size.Empty;
        }
    }
}

private void Form1_Load(object sender, EventArgs e)
{ 
    this.radGridView1.GridViewElement.GroupPanelElement.ScrollView.HScrollBar.PropertyChanged += HScrollBar_PropertyChanged;
}
Martin
Posted on: 19 Jan 2016 21:19
Can you post an example of the workaround? I am unable to get it to work...