Completed
Last Updated: 14 Nov 2014 15:12 by ADMIN
ADMIN
George
Created on: 11 Nov 2014 08:18
Category: GridView
Type: Bug Report
0
FIX. RadGridView - Having hierarchy with the aqua theme applied causes two templates to be expanded at the same time
To reproduce:

Download the attached project and expand the first row. Collapse it and expand the second row. You will see that both rows will be expanded.

Workaround:

void radGridView1_ChildViewExpanding(object sender, ChildViewExpandingEventArgs e)
{
    Point p = this.radGridView1.PointToClient(MousePosition);
    RadElement el = this.radGridView1.ElementTree.GetElementAtPoint(p);
    if (el != null)
    {
        GridRowElement rowElement = el.FindAncestor<GridRowElement>();
        if (rowElement != null && e.ParentRow.Index != rowElement.RowInfo.Index && !e.IsExpanded)
        {
            e.Cancel = true;
        }
    }
}
Attached Files:
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments