This is a migrated thread and some comments may be shown as answers.

[Solved] Animation in cells and scrolling

3 Answers 129 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Iñigo
Top achievements
Rank 1
Iñigo asked on 14 Oct 2010, 11:51 AM
Hi, I have some animated bars (border objects) in my gridview, inside GridViewColumn.CellTemplates, which "grow" from zero to a binding value when the gridview loads. My problem is when the grid is bigger than its container, then I get a scroll (which is OK). But when moving the scroll I get the animation every time a bar appears, which is too much. I'd like the bars to animate just when loading the gridview, and no animation when scrolling, how can I achieve this?

My animated borders are something like this:

<Border x:Name="bordeDispo" (...)>
(...)
                                        <Border.Triggers>
                                            <EventTrigger RoutedEvent="Border.Loaded">
                                                <EventTrigger.Actions>
                                                    <BeginStoryboard>
                                                        <Storyboard>
                                                            <DoubleAnimation Storyboard.TargetProperty="Width"
                                             Storyboard.TargetName="bordeDispo"
                                             From="0" To="{Binding (...) }" Duration="0:0:0.5" BeginTime="0:0:0.5">
                                                                <DoubleAnimation.EasingFunction>
                                                                    <PowerEase Power="6" EasingMode="EaseInOut" />
                                                                </DoubleAnimation.EasingFunction>
                                                            </DoubleAnimation>
                                                        </Storyboard>
                                                    </BeginStoryboard>
                                                </EventTrigger.Actions>
                                            </EventTrigger>
                                        </Border.Triggers>

                                    </Border>



Thanks

3 Answers, 1 is accepted

Sort by
0
Kalin Milanov
Telerik team
answered on 15 Oct 2010, 09:41 AM
Hi Iñigo,

You can set the EnableRowVirtualization="False" which will force the animation to load and not reload anymore. Note that this might increase the initial load time of the grid. 

Let me know how this goes.

Greetings,
Kalin Milanov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Iñigo
Top achievements
Rank 1
answered on 15 Oct 2010, 10:23 AM
Hi, it does the same... BTW, I am using a template I took from the project 162138-removingindentpresenter.zip in this thread: http://www.telerik.com/community/forums/silverlight/general-discussions/radgrid-for-silverlight.aspx , with slight modifications.
Maybe I should edit something in the template?
Thanks
0
Kalin Milanov
Telerik team
answered on 21 Oct 2010, 11:32 AM
Hello Iñigo,

The template you are referring to was created over a year ago with a version of the grid in many ways different than the one you are using at the moment. That being said, could you please send me your project so I can test it properly and provide you with the assistance you need.

Regards,
Kalin Milanov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Iñigo
Top achievements
Rank 1
Answers by
Kalin Milanov
Telerik team
Iñigo
Top achievements
Rank 1
Share this question
or