System.NullReferenceException: 'Object reference not set to an instance of an object.' when removing items from the list:
public Form1()
{
InitializeComponent();
for (var i = 0; i < 30; i++)
{
var item = new ListViewDataItem();
radListView2.Items.Insert(0, item);
item[0] = i;
item[1] = i;
item[2] = i;
item[3] = i;
}
}
private void radButton1_Click(object sender, EventArgs e)
{
try
{
radListView2.BeginUpdate();
foreach (var lvi in radListView2.Items.ToArray())
{
radListView2.Items.Remove(lvi);
}
}
finally
{
radListView2.EndUpdate();
}
}
Just to report a little typo in RadListViewElement:
Protected Overrides Sub OnCurrecntItemChanged(args As ListViewItemEventArgs)
Thanks.
This problem is even reproducible in our Demo application >> Virtual Grid >> Web service example. You will notice that when you scroll to the bottom, the waiting indicator is not being animated when the DPI scaling is higher than 100%.
If you apply the same gif file in a PictureBox it gets animated when using 150% DPI scaling.
Please refer to the attached sample project and follow the steps illustrated in the gif file.
Note: if the vertical scrollbar is visible, the editor is activated as expected.
Workaround:
Me.RadListView1.ItemSize = New Size(200, 30)