Can't get BusyIndicator to show

3 posts, 0 answers
  1. paul
    paul avatar
    16 posts
    Member since:
    Jan 2011

    Posted 06 Jan 2012 Link to this post

    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. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 11 Jan 2012 Link to this post

    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 >>

  3. DevCraft banner
  4. paul
    paul avatar
    16 posts
    Member since:
    Jan 2011

    Posted 16 Jan 2012 Link to this post

    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.







Back to Top