Completed
Last Updated: 21 Mar 2019 17:46 by Dimitar
Mary
Created on: 05 Mar 2019 06:40
Category: GridView
Type: Bug Report
1
RadGridView: Alternating row color does not work with hidded rows
Use attached to reproduce.
Attached Files:
2 comments
Dimitar
Posted on: 21 Mar 2019 17:46
Hello, 
 
A Fix will be available in LIB Version 2019.1.325 scheduled for March 25th.

Best regards, 
Dimitar
ADMIN
Dimitar
Posted on: 05 Mar 2019 07:00
Workaround:

private void RadGridView1_RowFormatting(object sender, Telerik.WinControls.UI.RowFormattingEventArgs e)
{
    var index = radGridView1.ChildRows.Where(x => x.IsVisible).ToList().IndexOf(e.RowElement.RowInfo);
    if (index % 2 == 0 && !e.RowElement.IsCurrent)
    {
        e.RowElement.DrawFill = true;
        e.RowElement.BackColor = Color.Red;
    }
    else
    {
        e.RowElement.ResetValue(RadItem.BackColorProperty, ValueResetFlags.Local);
        e.RowElement.ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local);
    }
}

 


Regards,
Dimitar
Progress Telerik
Get quickly and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.