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

RadBusyIndicator when sending email

1 Answer 58 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
ابو
Top achievements
Rank 1
ابو asked on 14 May 2016, 04:49 PM

hi my friends

I have radbutton that send many emails with attachment to gmail

I put in radbutton click event

RadBusyIndicator.isBusy=true;

 

but not showing the RadBusyIndicator

I don't know why

 

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 18 May 2016, 07:56 AM
Hello,

I suppose the BusyIndicator is not shown as its IsBusy property is called in the same method (the button click event) in which the UI thread is frozen. As any UI control, RadBusyIndicator cannot be shown while the UI thread is frozen.

In order to avoid this you could use a BackgroundWorker to show and hide the control. The approach is demonstrates in RadBusyIndicator First Look example in our WPF Demos. You could also take a look at the following topic which also demonstrates the usage of RadBusyIndicator with a BackgroundWorker:
Integrate with services and a RadWindow.

Regards,
Yana
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
BusyIndicator
Asked by
ابو
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or