Completed
Last Updated: 10 Jun 2020 09:50 by ADMIN
Release R2 2018
ADMIN
Dimitar
Created on: 20 Feb 2018 09:59
Category:
Type: Bug Report
2
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