Please use the following code snippet. When you select all items, only half of the items have the selected color applied:
public RadForm1()
{
InitializeComponent();
for (int i = 0; i < 20; i++)
{
this.radListControl1.Items.Add("Item" + i);
}
this.radListControl1.EnableAlternatingItemColor = true;
this.radListControl1.SelectionMode = SelectionMode.MultiSimple;
}
private void radButton1_Click(object sender, EventArgs e)
{
this.radListControl1.SelectAll();
}
Workaround:
this.radListControl1.SelectAll();
DefaultListControlStackContainer viewElement = this.radListControl1.ListElement.ViewElement as DefaultListControlStackContainer;
if (viewElement != null)
{
viewElement.ForceVisualStateUpdate();
}
}