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); }
No comments:
Post a Comment