Is it possible to check the busy indicator loading performance?

0 Answers 191 Views
BusyIndicator General Discussions
Psyduck
Top achievements
Rank 5
Bronze
Bronze
Bronze
Psyduck asked on 10 Aug 2021, 02:28 AM | edited on 10 Aug 2021, 02:31 AM

Hello.

First of all, my problem is that when the window is opened, the busy indicator appears after about 1-2 seconds.

 

The window is wrapped with a busy indicator.

I use async on Loaded Evenet to control the IsBsuy property.

<telerik:EventToCommandBehavior.EventBindings>
	<telerik:EventBinding EventName="Loaded" Command="{Binding OnEventLoadedCommand}"/>
</telerik:EventToCommandBehavior.EventBindings>
public ICommand OnEventLoadedCommand { get => new DelegateCommand(obj => Loaded(obj)); }
private async void Loaded()
{
    IsBusy = true;

        DataLoad . . . . (using async task)

    IsBusy = false;
}

 

In a simple sample project, it appears immediately.
However, in my actual project, it is a bit delayed.

 

This is my guess.
Before Loaded, my actual project contains a lot of controls.

The window contains navigation.

There are about 10 usercontrols.


<Window>
    <DataTemplate ....  dataconext = ViewModel> * 10
</Window>

<usercontrol> * 10
    <Many Controls Input Initial Setting>
</usercontrol>

ViewModel..cs => Read values ​​of many properties before constructor

 

User controls all share the window viewmodel (not separate, only the WindowViewModel).

I think this is the cause of the first creation, but what about it?


Is there any way to solve this? If not, what's the problem?

 

Thanks.

Dilyan Traykov
Telerik team
commented on 12 Aug 2021, 02:32 PM

Hello Psyduck,
Thank you for the provided code snippets.
I cannot be certain without being able to replicate the issue at my end, however, a possible reason I can think of for this delay is a timing issue caused by the fact that the RadBusyIndicator is not displayed immediately. This can be controlled via the DisplayAfter property.
Can you please try setting it to 00:00:00 and let me know if it resolves the issue? If that is not the case, please isolate this in a small sample project so that I can further investigate it at my end. If you do not wish to make the project public, you can open a new support ticket and attach it there.
Thank you in advance for your cooperation on the matter. I will be awaiting your reply.

Psyduck
Top achievements
Rank 5
Bronze
Bronze
Bronze
commented on 13 Aug 2021, 03:00 AM

I didn't touch the Delay After default (100 milliseconds), but I got delay of 1-2 seconds.

But when I set 00:00:00 it worked immediately.

thank you.
Dilyan Traykov
Telerik team
commented on 13 Aug 2021, 09:01 AM

I'm glad to hear that setting the DelayAfter property resolved your issue. Do let me know if I can further assist you with anything else.

No answers yet. Maybe you can help?

Tags
BusyIndicator General Discussions
Asked by
Psyduck
Top achievements
Rank 5
Bronze
Bronze
Bronze
Share this question
or