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

RadbusyIndicator loading after information loaded to grid

3 Answers 150 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
Abhi
Top achievements
Rank 1
Abhi asked on 12 Feb 2013, 04:30 PM
Hi I need radbusyindicator to show while information is being loaded.  I am not using MVVM, code is written in code behind.  I am including the code here.  Right now, the busyindicator only loads after radgridview is already loaded.  Can you please help me.


<telerik:RadBusyIndicator x:Name="busyIndicator" Grid.Row="1" />

private void LoadAnswers(Int64 inputSurveyId = 0)
        {
            busyIndicator.IsBusy = true;

            this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (ThreadStart)delegate()
                {
                    //busyIndicator.IsBusy = true;
                    if (inputSurveyId > 0)
                    {
                        //busyIndicator.IsBusy = true;
                        loadList.Clear();
                        loadList.AddRange(saf.GetAnswerUnfilteredE(inputSurveyId));
                        workList.Clear();
                        workList.AddRange(loadList);
                    }
                    else
                    {
                        loadList.Clear();
                        //busyIndicator.IsBusy = true;
                        loadList.AddRange(saf.GetAllE());
                        workList.Clear();
                        workList.AddRange(loadList);
                    }

                    QueryableCollectionView qCV = new QueryableCollectionView(workList);
                    rgvAnswers.DataContext = qCV;
                    rgvAnswers.ItemsSource = qCV;
                    rgvAnswers.Rebind();
                    //busyIndicator.IsBusy = false;
                });
        }

3 Answers, 1 is accepted

Sort by
0
Abhi
Top achievements
Rank 1
answered on 13 Feb 2013, 06:09 PM
Solved it
0
Soma
Top achievements
Rank 1
answered on 07 Mar 2013, 09:58 AM
Hi Abhi,

It would be great and helpful if you share how you have solved the issue.

Thanks in advance,
Somasundaram P
0
Mask
Top achievements
Rank 1
answered on 15 Mar 2013, 11:37 AM
Hi Abhi
I Have this kind of problem
When I retrieve data from server for my gridview, at the start of function call I set IsBusy = "True" and in Async method, after evrything ends set IsBusy = "False", but RadBusyIndicator does not wark

Tags
BusyIndicator
Asked by
Abhi
Top achievements
Rank 1
Answers by
Abhi
Top achievements
Rank 1
Soma
Top achievements
Rank 1
Mask
Top achievements
Rank 1
Share this question
or