Completed
Last Updated: 23 Apr 2020 16:12 by ADMIN
Release R2 2020 (LIB 2020.1.423)
Ketan
Created on: 10 Apr 2020 11:21
Category: ListControl
Type: Bug Report
0
RadListControl: The EnableAlternatingItemColor and the MultiExtended selection mode can break the back color of the selected items
The issue can be reproduced by performing a selection with Shift + End.
1 comment
ADMIN
Hristo
Posted on: 10 Apr 2020 11:24

Hello,

A possible workaround is to force the visual items to synchronize their styles:

 public partial class RadForm1 : Telerik.WinControls.UI.RadForm
 {
     public RadForm1()
     {
         InitializeComponent();

         this.radListControl1.SelectedItemsChanged += this.RadListControl1_SelectedItemsChanged;
     }

     private void RadListControl1_SelectedItemsChanged(object sender, Telerik.WinControls.Data.NotifyCollectionChangedEventArgs e)
     {
         DefaultListControlStackContainer viewElement = this.radListControl1.ListElement.ViewElement as DefaultListControlStackContainer;
         if (viewElement != null)
         {
             viewElement.ForceVisualStateUpdate();
         }
     }

...

Regards,
Hristo
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.