Completed
Last Updated: 12 Oct 2015 14:08 by ADMIN
ADMIN
Dimitar
Created on: 21 Jul 2015 10:51
Category: GridView
Type: Bug Report
0
FIX. RadGridView - incorrect layout when the checkbox column is used as self reference expander column
To reproduce:
- Add self-reference hierarchy  and set a checkbox column as expander column - show the column at runtime upon button click.
- You will notice that the layout is not updated properly.
- If the column is small the checkboxes appear in the next cell.

Workaround:
Update the layout when the column is made visible:
 this.gridViewParameter.TableElement.UpdateView();

Set the ClipDrawing property of the checkbox cells to true:
 void gridViewParameter_CellFormatting(object sender, CellFormattingEventArgs e)
{
    if (e.CellElement is GridCheckBoxCellElement)
    {
        e.CellElement.ClipDrawing = true;
    }
    else
    {
        e.CellElement.ResetValue(LightVisualElement.ClipDrawingProperty, Telerik.WinControls.ValueResetFlags.Local);
    }
}

 
0 comments