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

Can't get BusyIndicator to show

2 Answers 75 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
paul
Top achievements
Rank 1
paul asked on 06 Jan 2012, 04:01 PM
Hi

On one of my pages I have a routine which inserts several records into a database. This can take a few seconds (5 - 10) depending on the settings.

In the xaml of my page I have setup a BusyIndicator.  If I hardcode its 'IsBusy' value in xaml to True I can see the indicator running.

If in the xaml I set it to False and then progmatically set it to True when the routine starts - it doesn't show.

Am I missing something?

2 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 11 Jan 2012, 01:09 PM
Hello Paul,

Based on the description of the scenario I can assume that the control should be working as expected. However, since there might be some details about your scenario that are specific to the erroreous behavior, we would kindly like to ask you to prepare a sample project that reproduces the issue and send it to us for further investigation.

Please note that you will have to open a new support ticketd in order to be able to attach your project.

Thanks for your understanding and for the time taken.

All the best,
Deyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
paul
Top achievements
Rank 1
answered on 16 Jan 2012, 03:01 PM
Found the problem, It appeared to be that the UI thread was not getting enough time to update so I ran the routine that does the hard work on a different thread as follows:

radbusy.IsRunning = True

 

System.Threading.

 

Thread.Sleep(500)

 

 

 

Dim dispatcher As Windows.Threading.Dispatcher = Deployment.Current.Dispatcher

 

dispatcher.BeginInvoke(

 

Sub()

 

        updateDatabase()

 

 

    End Sub)

 


and in updateDatabase() it sets isrunning to false when completed.







Tags
BusyIndicator
Asked by
paul
Top achievements
Rank 1
Answers by
Deyan
Telerik team
paul
Top achievements
Rank 1
Share this question
or