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

How to add busyindicator to TileView

3 Answers 92 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
Kamal Mostofi
Top achievements
Rank 1
Kamal Mostofi asked on 06 Nov 2010, 09:21 PM
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

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 10 Nov 2010, 01:49 PM
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
0
Kamal Mostofi
Top achievements
Rank 1
answered on 11 Nov 2010, 11:00 AM
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
0
George
Telerik team
answered on 16 Nov 2010, 11:00 AM
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>>
Tags
BusyIndicator
Asked by
Kamal Mostofi
Top achievements
Rank 1
Answers by
George
Telerik team
Kamal Mostofi
Top achievements
Rank 1
Share this question
or