We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Animation firing when grid scrolls

Thread ID:





117042 Jul 28,2014 11:16 AM UTC Aug 8,2014 01:31 PM UTC WinRT 1
Tags: SfDataGrid
Robert Marsh
Asked On July 28, 2014 11:16 AM UTC

I've got an SFDatagrid that runs an animation when cell contents are changed using a style:

        <Style x:Key="currRunDataCellStyle"  TargetType="TextBlock">
            <Setter Property="Background" Value="#FFC5D9F1" />
                <EventTrigger RoutedEvent="Binding.TargetUpdated">
                                <!--Change the cell colour (of the one being updated) from Red to Normal-->
                                <ColorAnimation Duration="0:0:2" Storyboard.TargetProperty="Background.Color" From="Red" To="#FFC5D9F1" />

The only problem is that the animation fires when I scroll the grid as well. The data hasn't changed, but the animation still kicks off. Is there anyway to stop the grid from doing this?



Deepak Raj Sundar [Syncfusion]
Replied On August 8, 2014 01:31 PM UTC

Hai Rob,
The  reported problem of animation firing while scrolling the grid occurs because, in the grid  we are reusing the Gridcell and the datacontext will change for cells each time we scroll. so its like updating the cell vale  . You can achieve the animation while changing cell value alone and not while scrolling by writing behavior for the grid. Please refer the sample program attached.

Attachment: CellAnimation_Collection_behavior_944d24f0.zip


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon