Completed
Last Updated: 15 Oct 2015 12:06 by ADMIN
ADMIN
Dimitar
Created on: 07 Oct 2015 09:37
Category: GridView
Type: Bug Report
1
FIX. RadGridView - the ColumnWidthChanged event is not fire when column group view definition is used
To reproduce:
- Add ColumnGroupsViewDefinition and subscribe to ColumnWidthChanged event.
- Start the application and resize a column.

Workaround:
public class MyColumnGroupRowLayout : ColumnGroupRowLayout
{
    public MyColumnGroupRowLayout(ColumnGroupsViewDefinition view) : base(view)
    {
    }

    public override void ResizeColumn(int delta)
    {
        base.ResizeColumn(delta);
        //This method will be called when a column is resized
    }
}

class MyColumnGroupsViewDefinition : ColumnGroupsViewDefinition
{
    public override IGridRowLayout CreateRowLayout()
    {
        return new MyColumnGroupRowLayout(this);
    }
}
0 comments