Completed
Last Updated: 02 Mar 2018 16:08 by Dimitar
ADMIN
Dimitar
Created on: 20 Feb 2018 09:59
Category:
Type: Bug Report
0
FIX. RadListView - exception when a large item is updated at runtime.
Use attached to reproduce.

Workaround:
class MyListView : RadListView
{
    protected override RadListViewElement CreateListViewElement()
    {
        return new MyListViewElement();
    }
}
class MyListViewElement : RadListViewElement
{
    protected override Type ThemeEffectiveType => typeof(RadListViewElement);

    public override void SynchronizeVisualItems()
    {       
        for (int i = 0; i < this.ViewElement.ViewElement.Children.Count; i++)
        {
            BaseListViewVisualItem visualItem = (BaseListViewVisualItem)this.ViewElement.ViewElement.Children[i];
            visualItem.Synchronize();
        }
        this.Invalidate();
    }
}
Attached Files:
0 comments