This is a migrated thread and some comments may be shown as answers.

BeginUpdate still shows highlight on item as it's added

1 Answer 64 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 13 Dec 2012, 08:15 PM
I'm doing a refresh on an unbound listview and trying to do BeginUpdate before clearing and re-adding items (and then EndUpdate) still shows an item as highlighted during the refresh. Any way to prevent this?

1 Answer, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 18 Dec 2012, 02:30 PM
Hi Jason,

Thank you for contacting us.

I was not able to observe the described behavior. Here is the code I have used to re-populate the list view:
private void radButton1_Click(object sender, EventArgs e)
{
    this.radListView1.Items.BeginUpdate();
    this.radListView1.Items.Clear();
 
    for (int i = 0; i < 30; i++)
    {
        this.radListView1.Items.Add("Item " + i);
    }
 
    this.radListView1.Items.EndUpdate();
}

May I ask you to either post your code here or open a new support ticket and attach a sample project. This will let me investigate your case and provide you with further support.

Please let me know if I can assist you further.

Greetings,
Ivan Todorov
the Telerik team
Q3’12 of RadControls for WinForms is available for download (see what's new). Get it today.
Tags
ListView
Asked by
Jason
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Share this question
or