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

Loading animation

3 Answers 207 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Charles
Top achievements
Rank 1
Charles asked on 05 Jun 2009, 09:38 PM
I don't know if it is something we are doing wrong or if it the control itself.

When you open several nodes the process hits levels of 40%-50%.

I ran the profiler while viewing the TreeView. It shows that the node expanders are continually refreshing.

I'm deducting that the loading animation begins but does not stop. It looks like the screen is refreshing even in when the animation's visibility is not visible. I don't know if it is a fact that the screen is trying to refresh because of the loading animation, but it seems like it.

In the template, the trigger is defined:

<Trigger Property="IsLoadingOnDemand" Value="True"
                    <Trigger.EnterActions> 
                        <BeginStoryboard> 
                            <Storyboard> 
                                <DoubleAnimation Duration="00:00:01" RepeatBehavior="Forever" Storyboard.TargetName="LoadingVisualAngleTransform" Storyboard.TargetProperty="Angle" From="0" To="359"/> 
                            </Storyboard> 
                        </BeginStoryboard> 
                    </Trigger.EnterActions> 
                     
                    <Setter Property="Visibility" TargetName="LoadingVisual" Value="Visible"/> 
                    <Setter Property="Visibility" TargetName="Expander" Value="Collapsed"/> 
                </Trigger> 

If what I stated above is true, wouldn't you need to add and ExitAction like:
<Trigger Property="IsLoadingOnDemand" Value="True"
                    <Trigger.EnterActions> 
                        <BeginStoryboard> 
                            <Storyboard x:Name="NodeLoadingStoryboard"
                                <DoubleAnimation Duration="00:00:01" RepeatBehavior="Forever" Storyboard.TargetName="LoadingVisualAngleTransform" Storyboard.TargetProperty="Angle" From="0" To="359"/> 
                            </Storyboard> 
                        </BeginStoryboard> 
                    </Trigger.EnterActions> 
                     
                    <Trigger.ExitActions> 
                        <StopStoryboard BeginStoryboardName="NodeLoadingStoryboard" /> 
                    </Trigger.ExitActions> 
                     
                    <Setter Property="Visibility" TargetName="LoadingVisual" Value="Visible"/> 
                    <Setter Property="Visibility" TargetName="Expander" Value="Collapsed"/> 
                </Trigger> 



Have you seen this behavior? Am I missing something?

Thanks


3 Answers, 1 is accepted

Sort by
0
Bobi
Telerik team
answered on 10 Jun 2009, 11:02 AM
Hello Charles,

Thank you for reporting this issue and for your suggestion. Significant improvement to RadTreeView will be made in Q2.

We updated your Telerik points.

All the best,
Boryana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Gaurav
Top achievements
Rank 1
answered on 25 Dec 2009, 01:00 PM
I am using the most current version of the tree view and the problem still exists. I ended up putting the code suggested by Charles and that fixed the problem.

Charles --> A big thanks to you. This issue has been bothering me for a long time.

Telerik Folks --> Can we get this issue fixed?

Thanks

Gaurav
0
Miroslav
Telerik team
answered on 28 Dec 2009, 05:43 PM
Hi Gaurav,

I confirmed that this issue has indeed remained unfixed, thank you for bringing this up! Normally we do not let things like this slip through. 

We will get to fixing this ASAP, I will follow up here to confirm the fix.

Your Telerik Points have been updated for your feedback.

All the best,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TreeView
Asked by
Charles
Top achievements
Rank 1
Answers by
Bobi
Telerik team
Gaurav
Top achievements
Rank 1
Miroslav
Telerik team
Share this question
or