Saturday, January 24, 2015

RadGridView – Animate Backcolor Of Grouped Row

The version of Telerik Winforms is 2010 SP1.


RadControls support animating many properties.
To animate the backcolor of a grouped row, you need to implement the ViewCellFormatting event handler with the following logic.
void radGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
 AnimatedPropertySetting setting = new AnimatedPropertySetting();

 setting.Property = GridCellElement.BackColorProperty;
 setting.StartValue = oldColor;
 setting.EndValue = newColor;
 setting.Interval = 100;
 setting.NumFrames = 50;
 setting.AnimatorStyle = AnimatorStyles.AnimateAlways;
 setting.ApplyEasingType = RadEasingType.Default;
 setting.UnapplyEasingType = RadEasingType.OutCircular;
 setting.ApplyValue(e.CellElement.RowElement);
}


Create a Successful Online Store at Bigcommerce! Try it Free Now!

No comments:

Post a Comment