Completed
Last Updated: 14 Feb 2018 12:26 by Dimitar
ADMIN
Hristo
Created on: 13 Feb 2018 09:09
Category: DropDownList/ListControl
Type: Bug Report
1
FIX. RadListControl - the animation in the Fluent theme should be painted by the parent element holding the text and the descriptions
Workaround:
this.radListControl1.VisualItemFormatting += RadListControl1_VisualItemFormatting;

 private void RadListControl1_VisualItemFormatting(object sender, Telerik.WinControls.UI.VisualItemFormattingEventArgs args)
 {
     DescriptionTextListVisualItem item = args.VisualItem as DescriptionTextListVisualItem;
     if (item == null)
     {
         return;
     }

     item.MainContent.EnableBorderHighlight = false;
     item.MainContent.EnableHighlight = false;
     item.DescriptionContent.EnableBorderHighlight = false;
     item.DescriptionContent.EnableHighlight = false;

     foreach (var c in item.Children)
     {
         this.SetNMouseProperties(c);
     }           
 }

 private void SetNMouseProperties(RadElement element)
 {
     element.ShouldHandleMouseInput = false;
     foreach (var item in element.Children)
     {
         this.SetNMouseProperties(item);
     }
 }
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments