How to add busyindicator to TileView

4 posts, 0 answers
  1. Kamal Mostofi
    Kamal Mostofi avatar
    56 posts
    Member since:
    Jan 2010

    Posted 06 Nov 2010 Link to this post

    Hi,
    I have an SL RIA application where I load data into TileView on page load class. There is a few seconds delay before data shows on the screen. I would like to show the busyindicator for those few seconds. I added my tileview between busyindicator tags, set isbusy = true in xaml. But it always shows and never disappear! When i set it to false in the code behind after services loaded, it never displays the busyindicator.

    Can you help me please?

    Thanks,
    Kamal
  2. George
    Admin
    George avatar
    1332 posts

    Posted 10 Nov 2010 Link to this post

    Hi Kamal,

    I would suggest you to refer to our online example here - http://demos.telerik.com/silverlight/#BusyIndicator/FirstLook
    Also, if you give us more information about the problem, it would be very helpful.

    Best wishes,
    George
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Kamal Mostofi
    Kamal Mostofi avatar
    56 posts
    Member since:
    Jan 2010

    Posted 11 Nov 2010 Link to this post

    Hi,

    I looked at the sample. You can see my code behind.
    SupplierServices me = new SupplierServices();
    NavigationService services;
    BackgroundWorker myworker = new BackgroundWorker();
    public Suppliers()
    {
        InitializeComponent();
        try
        {
              
            if (!myworker.IsBusy)
            {
                this.anjbusyindicator.IsBusy = true;
                myworker.RunWorkerAsync();
            }
            myworker.DoWork += this.WorkerDoWork;
            myworker.RunWorkerCompleted += WorkerRunWorkerCompleted;
                  
             
        }
        catch
        {
        }
    }
    private void WorkerDoWork(object sender, DoWorkEventArgs e)
    {
          
        e.Result = loadproducts();
    }
    private bool  loadproducts()
    {
        this.tileView1.ItemsSource = me.AnjSuppliers;
        me.Load(me.GetAnjSuppliersQuery());
        me.Load(me.GetProductsQuery());
        return true;
    }
    void WorkerRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
    {
          
    }

    I am not sure what I should code in WorkerRunWorkerCompleted!!!
    The code above display the busyindicator but doesn't load the data and indicator shows forever.

    I do appreciate your help here.
    thanks,
    Kamal
  5. George
    Admin
    George avatar
    1332 posts

    Posted 16 Nov 2010 Link to this post

    Hello Kamal,

    Attached you can find a sample project that shows how to use RadBusyIndicator until something is finished. For the purpose of the sample I use Timers, but you could accomplish the same logic by using a RIA service, for example. For more information, please refer to our online documentation - http://www.telerik.com/help/silverlight/radbusyindicator-overview.html

    I hope this helps

    Kind regards,
    George
    the Telerik team
    See What's New in RadControls for Silverlight in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
Back to Top